[libcamera-devel] [PATCH 2/4] meson: enable no-psabi for gcc 9+

Tomi Valkeinen tomi.valkeinen at iki.fi
Wed Oct 7 11:22:37 CEST 2020


I get the warnings related to psabi with:

gcc 9.3.0 "arm-buildroot-linux-gnueabihf-g++.br_real (Buildroot 2020.08-24-gc5c5f1fa46) 9.3.0"

Remove the check for gcc-9, so that -Wno-psabi is used on all gcc
versions over 7.1.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen at iki.fi>
---
 meson.build | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index dd88eea..16f1c6f 100644
--- a/meson.build
+++ b/meson.build
@@ -75,8 +75,7 @@ if cc.get_id() == 'gcc'
     # passing on ARM platforms. This generates a large number of messages
     # during compilation with gcc >=7.1 until gcc 9. Silence them.
     if (host_machine.cpu_family() == 'arm' and
-        cc.version().version_compare('>=7.1') and
-        cc.version().version_compare('<9'))
+        cc.version().version_compare('>=7.1'))
         cpp_arguments += [
             '-Wno-psabi',
         ]
-- 
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki



More information about the libcamera-devel mailing list