[gnome-bluetooth] build: Use meson 0.43.0 features
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] build: Use meson 0.43.0 features
- Date: Wed, 15 Nov 2017 12:52:04 +0000 (UTC)
commit 8f3667783a8627b4690d5f6cfb5a6e7e4df3321a
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Tue Nov 14 10:05:35 2017 +0100
build: 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
options at once.
This patch bumps meson's dependency to take advantage of this
new feature.
https://bugzilla.gnome.org/show_bug.cgi?id=790332
meson.build | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/meson.build b/meson.build
index 7e4ff16..82f2dbc 100644
--- a/meson.build
+++ b/meson.build
@@ -3,7 +3,7 @@ project(
version: '3.26.1',
license: 'GPL2+',
default_options: 'buildtype=debugoptimized',
- meson_version: '>= 0.41.0'
+ meson_version: '>= 0.43.0'
)
gnomebt_version = meson.project_version()
@@ -135,11 +135,7 @@ if gnomebt_debug
'-Wstrict-prototypes'
]
- foreach flag: test_flags
- if cc.has_argument(flag)
- compiler_flags += [flag]
- endif
- endforeach
+ compiler_flags += cc.get_supported_arguments(test_flags)
endif
add_project_arguments(common_flags + compiler_flags, language: 'c')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]