From 6fad9ad7f730c953f82d20197d8ca041f6480254 Mon Sep 17 00:00:00 2001 From: Decaf Code Date: Wed, 1 May 2019 21:00:59 -0400 Subject: [PATCH] Use Meson get_argument_syntax() Newer versions of Meson introduce a more reliable way to detect the compiler's expected command-line argument style. --- meson.build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 1466797..53370c3 100644 --- a/meson.build +++ b/meson.build @@ -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',