aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorGiulio Benetti <giulio.benetti@benettiengineering.com>2025-04-25 19:00:14 +0200
committerBernd Schubert <bernd@bsbernd.com>2025-04-26 00:33:46 +0200
commit0eb8513206c2c467fa7510d0c762eb5c868dc66d (patch)
tree97e64294d705e83edfc173f1c7925729b77a1a4e /meson.build
parent82bcd818fb3e7d5ced9b0c04b7b7a98a892e807e (diff)
downloadlibfuse-0eb8513206c2c467fa7510d0c762eb5c868dc66d.tar.gz
meson.build: make special_funcs check more reliable
Unfortunately while cross-compiling with build tools like Buildroot it happens to have repeated flags or anything that could lead to a warning. This way the check fails because of a warning not related to the special function. So let's use cc.links() and increase minimum meson_version to 0.60 since cc.links() has been added during that version. Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 4e5c90c..3615a5a 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,6 @@
project('libfuse3', ['c'],
version: '3.18.0-rc0', # Version with RC suffix
- meson_version: '>= 0.51.0',
+ meson_version: '>= 0.60.0',
default_options: [
'buildtype=debugoptimized',
'c_std=gnu11',
@@ -108,7 +108,7 @@ special_funcs = {
foreach name, code : special_funcs
private_cfg.set('HAVE_' + name.to_upper(),
- cc.compiles(code, args: ['-Werror'] + args_default,
+ cc.links(code, args: args_default,
name: name + ' check'))
endforeach