[gtk] build: Use get_supported_arguments()



commit a7e96675bd29dda18436d70838ee49a399869f11
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Feb 20 13:18:28 2018 +0000

    build: Use get_supported_arguments()
    
    Instead of checking each flag one by one, use the appropriate method of
    the Meson compiler object.

 meson.build | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/meson.build b/meson.build
index b75a085370..aa6aaa8d19 100644
--- a/meson.build
+++ b/meson.build
@@ -262,12 +262,7 @@ else
   test_cflags = []
 endif
 
-common_cflags = []
-foreach cflag: test_cflags
-  if cc.has_argument(cflag)
-    common_cflags += [ cflag ]
-  endif
-endforeach
+common_cflags = cc.get_supported_arguments(test_cflags)
 
 # Symbol visibility
 if get_option('default_library') != 'static'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]