mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
meson: fix linker checks
This commit is contained in:
@ -122,12 +122,12 @@ if not get_option('buildtype').startswith('debug')
|
||||
]
|
||||
endif
|
||||
|
||||
foreach arg: test_link_args
|
||||
if cc.has_argument(arg)
|
||||
global_link_args += arg
|
||||
foreach link_arg: test_link_args
|
||||
if cc.links('int main () { return 0; }', name: link_arg, args: link_arg)
|
||||
global_link_args += link_arg
|
||||
endif
|
||||
endforeach
|
||||
add_global_link_arguments(global_link_args, language: 'c')
|
||||
add_project_link_arguments(global_link_args, language: 'c')
|
||||
|
||||
if not cc.links('''
|
||||
#include <stdatomic.h>
|
||||
|
||||
Reference in New Issue
Block a user