[dconf: 16/21] build: Simplified checking compiler supported arguments



commit 4ef809a42f55adec9d32210867028aa502639a88
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Fri Aug 10 11:24:15 2018 +0200

    build: Simplified checking compiler supported arguments
    
    An auxiliary variable is used to hold the compiler arguments to be
    checked. However, this is not necessary, so it has been removed.

 meson.build | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index 0d3b2f9..780e820 100644
--- a/meson.build
+++ b/meson.build
@@ -25,13 +25,11 @@ valac = meson.get_compiler('vala')
 common_flags = []
 
 if get_option('buildtype').contains('debug')
-  test_cflags = [
+  common_flags += cc.get_supported_arguments([
     '-fno-common',
     '-Wmissing-prototypes',
     '-Wwrite-strings'
-  ]
-
-  common_flags += cc.get_supported_arguments(test_cflags)
+  ])
 endif
 
 add_project_arguments(common_flags, language: 'c')


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