From: Pavan Nikhilesh <pbhagavat...@marvell.com> Disable -Wasm-operand-widths when using clang.
Fixes: 1c80eb7a3ccc ("event/cnxk: use WFE in Tx flow control wait") Signed-off-by: Pavan Nikhilesh <pbhagavat...@marvell.com> --- Jerin, Please squash this to 1c80eb7a3ccc. drivers/event/cnxk/meson.build | 4 ++++ drivers/net/cnxk/meson.build | 3 +++ 2 files changed, 7 insertions(+) diff --git a/drivers/event/cnxk/meson.build b/drivers/event/cnxk/meson.build index e38d3b0244..91c26fae6f 100644 --- a/drivers/event/cnxk/meson.build +++ b/drivers/event/cnxk/meson.build @@ -294,6 +294,10 @@ sources += files( endif extra_flags = ['-flax-vector-conversions', '-Wno-strict-aliasing'] +if cc.get_id() == 'clang' + extra_flags += ['-Wno-asm-operand-widths'] +endif + foreach flag: extra_flags if cc.has_argument(flag) cflags += flag diff --git a/drivers/net/cnxk/meson.build b/drivers/net/cnxk/meson.build index 62b8bb90fb..5f4b8a0431 100644 --- a/drivers/net/cnxk/meson.build +++ b/drivers/net/cnxk/meson.build @@ -202,6 +202,9 @@ deps += ['common_cnxk', 'mempool_cnxk'] # Allow implicit vector conversions and strict aliasing warning extra_flags = ['-flax-vector-conversions', '-Wno-strict-aliasing'] +if cc.get_id() == 'clang' + extra_flags += ['-Wno-asm-operand-widths'] +endif foreach flag: extra_flags if cc.has_argument(flag) cflags += flag -- 2.39.1