meson: Use get_supported_arguments()

Instead of iterating over the list of compiler flags, we should use the
get_supported_arguments() method of the compiler object, which does it
for us — and maybe, in the future, will be optimised to do the checks in
parallel.
macos/v1.5.9
Emmanuele Bassi 7 years ago
parent 60bb7672c1
commit 1489c20770
  1. 7
      meson.build

@ -159,12 +159,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)
libtype = get_option('default_library')

Loading…
Cancel
Save