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.
This commit is contained in:
Richard Hughes 2018-04-29 19:40:24 +01:00
parent 7e43ed191d
commit 83d46b0579

View File

@ -1,7 +1,7 @@
project('fwupd', 'c', project('fwupd', 'c',
version : '1.1.0', version : '1.1.0',
license : 'LGPL-2.1+', license : 'LGPL-2.1+',
meson_version : '>=0.43.0', meson_version : '>=0.46.0',
default_options : ['warning_level=2', 'c_std=c99'], default_options : ['warning_level=2', 'c_std=c99'],
) )
@ -113,7 +113,7 @@ test_link_args = [
'-Wl,-z,now', '-Wl,-z,now',
] ]
foreach arg: test_link_args foreach arg: test_link_args
if cc.has_argument(arg) if cc.has_link_argument(arg)
global_link_args += arg global_link_args += arg
endif endif
endforeach endforeach