[Lldb-commits] [lldb] [LLDB] Pass `/std:...` before `--` on MSVC (PR #141782)
via lldb-commits
lldb-commits at lists.llvm.org
Wed May 28 07:46:09 PDT 2025
https://github.com/Nerixyz created https://github.com/llvm/llvm-project/pull/141782
>From https://github.com/llvm/llvm-project/pull/140761. `MsvcBuilder` passed `/std:<value>` (if specified) after `--`, so the compiler would interpret this as a file. This moves the argument before the `--`.
>From e14af7d191e1983df5a821a98a19e2dc0c6e9c48 Mon Sep 17 00:00:00 2001
From: Nerixyz <nerixdev at outlook.de>
Date: Wed, 21 May 2025 17:32:48 +0200
Subject: [PATCH] [LLDB] Pass `/std:...` before `--` on MSVC
---
lldb/test/Shell/helper/build.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lldb/test/Shell/helper/build.py b/lldb/test/Shell/helper/build.py
index b2b8146e88c75..caaa14f90af1c 100755
--- a/lldb/test/Shell/helper/build.py
+++ b/lldb/test/Shell/helper/build.py
@@ -683,14 +683,14 @@ def _get_compilation_command(self, source, obj):
args.append("-fms-compatibility-version=19")
args.append("/c")
+ if self.std:
+ args.append("/std:" + self.std)
+
args.append("/Fo" + obj)
if self.toolchain_type == "clang-cl":
args.append("--")
args.append(source)
- if self.std:
- args.append("/std:" + self.std)
-
return ("compiling", [source], obj, self.compile_env, args)
def _get_link_command(self):
More information about the lldb-commits
mailing list