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):