ref: a5e45517ce055e557406b48299c33f274ab3d60c
parent: d68a2fc18131191cf41a33ce8585df86f5c40dea
author: Martin Storsjö <[email protected]>
date: Sun Sep 20 12:18:22 EDT 2020
meson: Set msvc like warning options for clang-cl This avoids lots of warnings about unsupported warning options.
--- a/meson.build
+++ b/meson.build
@@ -238,7 +238,7 @@
# Compiler flags that should be set
# But when the compiler does not supports them
# it is not an error and silently tolerated
-if cc.get_id() != 'msvc'
+if cc.get_argument_syntax() != 'msvc'
optional_arguments += [
'-Wundef',
'-Werror=vla',