CmdArgs.push_back("-nologo");
if (getToolChain().getDriver().getOrParseSanitizerArgs(Args).needsAsanRt()) {
+ CmdArgs.push_back(Args.MakeArgString("-debug"));
SmallString<128> LibSanitizer(getToolChain().getDriver().ResourceDir);
// FIXME: Handle 64-bit. Use asan_dll_thunk.dll when building a DLL.
llvm::sys::path::append(
// RUN: %clang_cl /Tc%s -### -fsanitize=address 2>&1 | FileCheck --check-prefix=ASAN %s
// ASAN: link.exe
+// ASAN: "-debug"
// ASAN: "{{.*}}clang_rt.asan-i386.lib"
// ASAN: "{{.*}}cl-link{{.*}}.obj"