From 83d46b05792042c431e9cf417315ae18ec707a13 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Sun, 29 Apr 2018 19:40:24 +0100 Subject: [PATCH] Fix linker argument checks Meson 0.46.0 adds has_link_argument to compiler objects, and we should use it instead of has_argument when checking linker arguments. --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index eaac83756..496a07992 100644 --- a/meson.build +++ b/meson.build @@ -1,7 +1,7 @@ project('fwupd', 'c', version : '1.1.0', license : 'LGPL-2.1+', - meson_version : '>=0.43.0', + meson_version : '>=0.46.0', default_options : ['warning_level=2', 'c_std=c99'], ) @@ -113,7 +113,7 @@ test_link_args = [ '-Wl,-z,now', ] foreach arg: test_link_args - if cc.has_argument(arg) + if cc.has_link_argument(arg) global_link_args += arg endif endforeach