diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2018-08-10 11:24:15 +0200 |
---|---|---|
committer | Iñigo Martínez <inigomartinez@gmail.com> | 2018-08-11 22:56:33 +0200 |
commit | 4ef809a42f55adec9d32210867028aa502639a88 (patch) | |
tree | 5d51b2c6807de7f5c1e7435e0f5a79438f9ab1ef /meson.build | |
parent | 14d49e69dc320e9a2953b9753441fab5a058c60f (diff) | |
download | dconf-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.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 6 |
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') |