From: Bruce Richardson Date: Fri, 24 Jan 2020 15:37:54 +0000 (+0000) Subject: net/octeontx2: check compiler flag before use X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f2b700a3283b605dd44d376a894cf5d1870b7986;p=dpdk.git net/octeontx2: check compiler flag before use Rather than assuming all compilers support the -flax-vector-extensions flag, we should test this before using it, thereby potentially avoiding warnings. Signed-off-by: Bruce Richardson Acked-by: Jerin Jacob --- diff --git a/drivers/net/octeontx2/meson.build b/drivers/net/octeontx2/meson.build index 04cf58f5c9..599ade6727 100644 --- a/drivers/net/octeontx2/meson.build +++ b/drivers/net/octeontx2/meson.build @@ -28,9 +28,7 @@ sources = files('otx2_rx.c', deps += ['bus_pci', 'cryptodev', 'eventdev', 'security'] deps += ['common_octeontx2', 'mempool_octeontx2'] -cflags += ['-flax-vector-conversions'] - -extra_flags = [] +extra_flags = ['-flax-vector-conversions'] # This integrated controller runs only on a arm64 machine, remove 32bit warnings if not dpdk_conf.get('RTE_ARCH_64') extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']