[network-manager-applet/wip/inigomartinez/meson-improvements: 4/7] build(meson): Use meson 0.43.0 features
- From: Iñigo Martínez <inigomartinez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/wip/inigomartinez/meson-improvements: 4/7] build(meson): Use meson 0.43.0 features
- Date: Mon, 13 Nov 2017 09:57:02 +0000 (UTC)
commit eb11b0decc1f1063295e25023e03213e7d81ee13
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Fri Nov 10 17:42:41 2017 +0100
build(meson): Use meson 0.43.0 features
meson 0.43.0 comes with a new function in the compiler's object
called get_supported_arguments, which allows checking multiple
optiones at once.
This patch bumps meson's version number and also takes
advantage of this new feature.
https://bugzilla.gnome.org/show_bug.cgi?id=790178
meson.build | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/meson.build b/meson.build
index 887020a..b6b2957 100644
--- a/meson.build
+++ b/meson.build
@@ -6,7 +6,7 @@ project(
'buildtype=debugoptimized',
'c_std=gnu99'
],
- meson_version: '>= 0.42.0'
+ meson_version: '>= 0.43.0'
)
nma_long_name = 'network-manager-applet'
@@ -172,11 +172,7 @@ if nma_debug
'-Wundef'
]
- foreach cflag: test_cflags
- if cc.has_argument(cflag)
- common_flags += [cflag]
- endif
- endforeach
+ 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]