Use Meson get_argument_syntax()

Newer versions of Meson introduce a more reliable way to detect
the compiler's expected command-line argument style.
This commit is contained in:
Decaf Code
2019-05-01 21:00:59 -04:00
parent dfb7fbf219
commit 6fad9ad7f7
+1 -2
View File
@@ -6,8 +6,7 @@ add_project_arguments(
language: 'c',
)
# Use get_argument_syntax() instead once Meson 0.49.0 releases
if meson.get_compiler('c').get_id() != 'msvc'
if meson.get_compiler('c').get_argument_syntax() != 'msvc'
add_project_arguments(
'-Wall',
'-ffunction-sections',