Skip to content

Commit 2d937fb

Browse files
Nerixyzsivan-shani
authored andcommitted
[LLDB] Pass /std:... before -- on MSVC (llvm#141782)
From llvm#140761. `MsvcBuilder` passed `/std:<value>` (if specified) after `--`, so the compiler would interpret this as a file. This moves the argument before the `--`.
1 parent c124e5f commit 2d937fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/test/Shell/helper/build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -683,14 +683,14 @@ def _get_compilation_command(self, source, obj):
683683
args.append("-fms-compatibility-version=19")
684684
args.append("/c")
685685

686+
if self.std:
687+
args.append("/std:" + self.std)
688+
686689
args.append("/Fo" + obj)
687690
if self.toolchain_type == "clang-cl":
688691
args.append("--")
689692
args.append(source)
690693

691-
if self.std:
692-
args.append("/std:" + self.std)
693-
694694
return ("compiling", [source], obj, self.compile_env, args)
695695

696696
def _get_link_command(self):

0 commit comments

Comments
 (0)