forked from AuroraMiddleware/gtk
build: Use get_supported_arguments()
Instead of checking each flag one by one, use the appropriate method of the Meson compiler object.
This commit is contained in:
parent
bfc81767ba
commit
a7e96675bd
@ -262,12 +262,7 @@ else
|
||||
test_cflags = []
|
||||
endif
|
||||
|
||||
common_cflags = []
|
||||
foreach cflag: test_cflags
|
||||
if cc.has_argument(cflag)
|
||||
common_cflags += [ cflag ]
|
||||
endif
|
||||
endforeach
|
||||
common_cflags = cc.get_supported_arguments(test_cflags)
|
||||
|
||||
# Symbol visibility
|
||||
if get_option('default_library') != 'static'
|
||||
|
Loading…
Reference in New Issue
Block a user