diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2017-11-12 11:48:07 +0100 |
---|---|---|
committer | Iñigo Martínez <inigomartinez@gmail.com> | 2018-08-11 22:55:53 +0200 |
commit | 082a10cbadd6d7951d12c9b92aa5e1e7278f0068 (patch) | |
tree | 3757cee7c80b93ca4908d9277404dd234c0cd286 /common | |
parent | e5f8af841b7236507add31d7cb78531f62e35849 (diff) | |
download | dconf-082a10cbadd6d7951d12c9b92aa5e1e7278f0068.tar.gz |
build: Use get_supported_arguments helper
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.
Diffstat (limited to 'common')
-rw-r--r-- | common/meson.build | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/common/meson.build b/common/meson.build index c431fe9..28427f6 100644 --- a/common/meson.build +++ b/common/meson.build @@ -38,11 +38,7 @@ libdconf_common_shared = static_library( pic: true ) -test_cflag = '-fvisibility=hidden' - -if cc.has_argument(test_cflag) - cflags += [test_cflag] -endif +cflags += cc.get_supported_arguments('-fvisibility=hidden') libdconf_common_hidden = static_library( name + '-hidden', |