mirror of
https://github.com/hexchat/hexchat.git
synced 2024-11-09 12:42:31 +01:00
build: Silence some Meson warnings and bump requirement to 0.40.0
This commit is contained in:
parent
18eae24acf
commit
c7322f406c
10
meson.build
10
meson.build
@ -1,6 +1,6 @@
|
||||
project('hexchat', 'c',
|
||||
version: '2.14.2',
|
||||
meson_version: '>= 0.38.0',
|
||||
meson_version: '>= 0.40.0',
|
||||
default_options: [
|
||||
'c_std=gnu89',
|
||||
'buildtype=debugoptimized',
|
||||
@ -136,7 +136,13 @@ test_ldflags = [
|
||||
'-Wl,--nxcompat',
|
||||
]
|
||||
foreach ldflag : test_ldflags
|
||||
if cc.has_argument(ldflag) and cc.links('int main (void) { return 0; }', args: ldflag)
|
||||
if meson.version().version_compare('>= 0.46.0')
|
||||
has_arg = cc.has_link_argument(ldflag)
|
||||
else
|
||||
has_arg = cc.has_argument(ldflag)
|
||||
endif
|
||||
|
||||
if has_arg and cc.links('int main (void) { return 0; }', args: ldflag)
|
||||
global_ldflags += ldflag
|
||||
endif
|
||||
endforeach
|
||||
|
Loading…
Reference in New Issue
Block a user