summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build6
1 files changed, 2 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index 6b0e1eebe6..034b7827f1 100644
--- a/meson.build
+++ b/meson.build
@@ -148,7 +148,7 @@ if enable_ld_gc
endif
if nm_debug
- test_cflags = [
+ common_flags += cc.get_supported_arguments([
'-fno-strict-aliasing',
'-Wdeclaration-after-statement',
'-Wfloat-equal',
@@ -172,9 +172,7 @@ if nm_debug
'-Wtypedef-redefinition',
'-Wundef',
'-Wunknown-attributes',
- ]
-
- common_flags += cc.get_supported_arguments(test_cflags)
+ ])
endif
add_project_arguments(common_flags, language: 'c')