mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
14 lines
625 B
Diff
14 lines
625 B
Diff
diff --git a/mesonbuild/cmake/toolchain.py b/mesonbuild/cmake/toolchain.py
|
|
index 7d73a7c..564e6de 100644
|
|
--- a/mesonbuild/cmake/toolchain.py
|
|
+++ b/mesonbuild/cmake/toolchain.py
|
|
@@ -196,7 +196,7 @@ class CMakeToolchain:
|
|
@staticmethod
|
|
def is_cmdline_option(compiler: 'Compiler', arg: str) -> bool:
|
|
if compiler.get_argument_syntax() == 'msvc':
|
|
- return arg.startswith('/')
|
|
+ return arg.startswith(('/','-'))
|
|
else:
|
|
if compiler.exelist[0] == 'zig' and arg in {'ar', 'cc', 'c++', 'dlltool', 'lib', 'ranlib', 'objcopy', 'rc'}:
|
|
return True
|