Author: nerix Date: 2025-05-30T09:08:50+01:00 New Revision: 1b1f498835f664cf2e112008edc6c956462e81c0
URL: https://github.com/llvm/llvm-project/commit/1b1f498835f664cf2e112008edc6c956462e81c0 DIFF: https://github.com/llvm/llvm-project/commit/1b1f498835f664cf2e112008edc6c956462e81c0.diff LOG: [LLDB] Pass `/std:...` before `--` on MSVC (#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 `--`. Added: Modified: lldb/test/Shell/helper/build.py Removed: ################################################################################ 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): _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits