@@ -7,6 +7,8 @@ if is_windows
subdir_done()
endif
+cflags += no_wvla_cflag
+
sources = files('acl_bld.c', 'acl_gen.c', 'acl_run_scalar.c',
'rte_acl.c', 'tb_mem.c')
headers = files('rte_acl.h', 'rte_acl_osdep.h')
@@ -7,6 +7,8 @@ if is_windows
subdir_done()
endif
+cflags += no_wvla_cflag
+
if arch_subdir == 'x86' and dpdk_conf.get('RTE_ARCH_32')
build = false
reason = 'not supported on 32-bit x86'
@@ -7,6 +7,8 @@ if is_windows
subdir_done()
endif
+cflags += no_wvla_cflag
+
sources = files('rte_dispatcher.c')
headers = files('rte_dispatcher.h')
@@ -7,6 +7,8 @@ if is_windows
subdir_done()
endif
+cflags += no_wvla_cflag
+
sources = files(
'eventdev_private.c',
'eventdev_trace_points.c',
@@ -7,6 +7,8 @@ if is_windows
subdir_done()
endif
+cflags += no_wvla_cflag
+
sources = files('esp_inb.c', 'esp_outb.c',
'sa.c', 'ses.c', 'ipsec_sad.c',
'ipsec_telemetry.c')
@@ -7,6 +7,8 @@ if is_windows
subdir_done()
endif
+cflags += no_wvla_cflag
+
headers = files('rte_member.h')
sources = files(
@@ -9,3 +9,5 @@ if dpdk_conf.has('RTE_HAS_JANSSON')
endif
deps += ['ethdev', 'telemetry']
+
+cflags += no_wvla_cflag
@@ -7,6 +7,8 @@ if is_windows
subdir_done()
endif
+cflags += no_wvla_cflag
+
sources = files(
'pdcp_cnt.c',
'pdcp_crypto.c',
@@ -7,6 +7,8 @@ if is_windows
subdir_done()
endif
+cflags += no_wvla_cflag
+
sources = files('rte_pdump.c')
headers = files('rte_pdump.h')
deps += ['ethdev', 'bpf', 'pcapng']
@@ -7,6 +7,8 @@ if is_windows
subdir_done()
endif
+cflags += no_wvla_cflag
+
sources = files(
'rte_pipeline.c',
'rte_port_in_action.c',
@@ -11,6 +11,9 @@ if not is_linux
build = false
reason = 'only supported on Linux'
endif
+
+cflags += no_wvla_cflag
+
sources = files(
'power_common.c',
'rte_power_cpufreq.c',
@@ -1,6 +1,8 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
+cflags += no_wvla_cflag
+
sources = files(
'rte_swx_keycmp.c',
'rte_swx_table_em.c',
@@ -16,11 +16,20 @@ elif (toolchain == 'icc' and cc.version().version_compare('>=16.0.0'))
cflags += '-DVHOST_ICC_UNROLL_PRAGMA'
endif
dpdk_conf.set('RTE_LIBRTE_VHOST_POSTCOPY', cc.has_header('linux/userfaultfd.h'))
-cflags += [
+
+cflags += no_wvla_cflag
+
+extra_flags = [
'-fno-strict-aliasing',
'-Wno-address-of-packed-member',
]
+foreach arg: extra_flags
+ if cc.has_argument(arg)
+ cflags += arg
+ endif
+endforeach
+
sources = files(
'fd_man.c',
'iotlb.c',