summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2018-08-10 11:24:15 +0200
committerIñigo Martínez <inigomartinez@gmail.com>2018-08-11 22:56:33 +0200
commit4ef809a42f55adec9d32210867028aa502639a88 (patch)
tree5d51b2c6807de7f5c1e7435e0f5a79438f9ab1ef
parent14d49e69dc320e9a2953b9753441fab5a058c60f (diff)
downloaddconf-4ef809a42f55adec9d32210867028aa502639a88.tar.gz
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.
-rw-r--r--meson.build6
1 files 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')