diff --git a/meson.build b/meson.build index 9281ea5..9a09238 100644 --- a/meson.build +++ b/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')