mirror of
https://gitea.tendokyu.moe/TeamTofuShop/capnhook.git
synced 2026-09-22 22:38:12 +03:00
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:
+1
-2
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user