From: David Marchand Date: Wed, 15 Sep 2021 05:08:12 +0000 (+0200) Subject: config/ppc: fix build with GCC >= 10 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=dfb1ad1e7a070926c9bd9fdf38e6b944a21f1d49;p=dpdk.git config/ppc: fix build with GCC >= 10 Like for python, multiline statements in meson must either use a backslash character (explicit continuation) or be enclosed in () (implicit continuation). python PEP8 recommends the latter [1], and it looks like meson had an issue with backslash before 0.50 [2]. 1: https://www.python.org/dev/peps/pep-0008/#multiline-if-statements 2: https://github.com/mesonbuild/meson/commit/90c9b868b20b Fixes: 394407f50c90 ("config/ppc: ignore GCC 11 psabi warnings") Reported-by: Ferruh Yigit Signed-off-by: David Marchand Tested-by: Ferruh Yigit Acked-by: Bruce Richardson --- diff --git a/config/ppc/meson.build b/config/ppc/meson.build index 0b1948fc7c..aa1327a595 100644 --- a/config/ppc/meson.build +++ b/config/ppc/meson.build @@ -20,8 +20,8 @@ endif # Suppress the gcc warning "note: the layout of aggregates containing # vectors with 4-byte alignment has changed in GCC 5". -if cc.get_id() == 'gcc' and cc.version().version_compare('>=10.0') and - cc.version().version_compare('<12.0') and cc.has_argument('-Wno-psabi') +if (cc.get_id() == 'gcc' and cc.version().version_compare('>=10.0') and + cc.version().version_compare('<12.0') and cc.has_argument('-Wno-psabi')) add_project_arguments('-Wno-psabi', language: 'c') endif