2024-03-11 22:09:15 +01:00
|
|
|
diff --git a/mesonbuild/cmake/toolchain.py b/mesonbuild/cmake/toolchain.py
|
2024-10-24 04:45:08 +02:00
|
|
|
index 7d73a7c..564e6de 100644
|
2024-03-11 22:09:15 +01:00
|
|
|
--- a/mesonbuild/cmake/toolchain.py
|
|
|
|
+++ b/mesonbuild/cmake/toolchain.py
|
2024-10-24 04:45:08 +02:00
|
|
|
@@ -196,7 +196,7 @@ class CMakeToolchain:
|
2024-03-11 22:09:15 +01:00
|
|
|
@staticmethod
|
|
|
|
def is_cmdline_option(compiler: 'Compiler', arg: str) -> bool:
|
|
|
|
if compiler.get_argument_syntax() == 'msvc':
|
|
|
|
- return arg.startswith('/')
|
|
|
|
+ return arg.startswith(('/','-'))
|
|
|
|
else:
|
2024-10-24 04:45:08 +02:00
|
|
|
if compiler.exelist[0] == 'zig' and arg in {'ar', 'cc', 'c++', 'dlltool', 'lib', 'ranlib', 'objcopy', 'rc'}:
|
|
|
|
return True
|