The no_wvla_cflag is added to meson.build files in directories that
are not yet VLA-free.
Signed-off-by: Andre Muezerie <andremue@linux.microsoft.com>
---
app/pdump/meson.build | 2 ++
app/proc-info/meson.build | 2 ++
app/test-acl/meson.build | 2 ++
app/test-bbdev/meson.build | 2 ++
app/test-crypto-perf/meson.build | 2 ++
app/test-dma-perf/meson.build | 2 ++
app/test-eventdev/meson.build | 2 ++
app/test-flow-perf/meson.build | 2 ++
app/test-pmd/meson.build | 10 +++++++++-
app/test-sad/meson.build | 2 ++
app/test/meson.build | 17 ++++++++++++-----
11 files changed, 39 insertions(+), 6 deletions(-)
@@ -9,3 +9,5 @@ endif
sources = files('main.c')
deps += ['ethdev', 'kvargs', 'pdump']
+
+cflags += no_wvla_cflag
@@ -12,3 +12,5 @@ deps += ['ethdev', 'security', 'eventdev']
if dpdk_conf.has('RTE_LIB_METRICS')
deps += 'metrics'
endif
+
+cflags += no_wvla_cflag
@@ -9,3 +9,5 @@ endif
sources = files('main.c')
deps += ['acl', 'net']
+
+cflags += no_wvla_cflag
@@ -26,3 +26,5 @@ endif
if dpdk_conf.has('RTE_BASEBAND_LA12XX')
deps += ['baseband_la12xx']
endif
+
+cflags += no_wvla_cflag
@@ -23,3 +23,5 @@ deps += ['cryptodev', 'net', 'security']
if dpdk_conf.has('RTE_CRYPTO_SCHEDULER')
deps += 'crypto_scheduler'
endif
+
+cflags += no_wvla_cflag
@@ -13,3 +13,5 @@ sources = files(
'main.c',
'benchmark.c',
)
+
+cflags += no_wvla_cflag
@@ -23,3 +23,5 @@ sources = files(
'test_pipeline_queue.c',
)
deps += 'eventdev'
+
+cflags += no_wvla_cflag
@@ -15,3 +15,5 @@ sources = files(
)
deps += ['ethdev']
+
+cflags += no_wvla_cflag
@@ -3,7 +3,15 @@
# override default name to drop the hyphen
name = 'testpmd'
-cflags += '-Wno-deprecated-declarations'
+
+extra_flags = ['-Wno-deprecated-declarations']
+
+foreach arg: extra_flags
+ if cc.has_argument(arg)
+ cflags += arg
+ endif
+endforeach
+
sources = files(
'5tswap.c',
'cmdline.c',
@@ -9,3 +9,5 @@ endif
sources = files('main.c')
deps += ['ipsec', 'net']
+
+cflags += no_wvla_cflag
@@ -250,12 +250,19 @@ foreach d:optional_deps
endif
endforeach
-if cc.has_argument('-Wno-format-truncation')
- cflags += '-Wno-format-truncation'
-endif
+cflags += no_wvla_cflag
+
+extra_flags = [
+ # Strict-aliasing rules are violated by uint8_t[] to context size casts.
+ '-fno-strict-aliasing',
+ '-Wno-format-truncation',
+]
-# Strict-aliasing rules are violated by uint8_t[] to context size casts.
-cflags += '-fno-strict-aliasing'
+foreach arg: extra_flags
+ if cc.has_argument(arg)
+ cflags += arg
+ endif
+endforeach
# Enable using internal APIs in unit tests
cflags += '-DALLOW_INTERNAL_API'