clang-cl: Pass -incremental:no to linker when using ASan

llvm-svn: 189664
This commit is contained in:
Hans Wennborg 2013-08-30 10:50:52 +00:00
parent 8ddfa8489b
commit d024c1c803
2 changed files with 2 additions and 0 deletions

View File

@ -6573,6 +6573,7 @@ void visualstudio::Link::ConstructJob(Compilation &C, const JobAction &JA,
if (getToolChain().getDriver().getOrParseSanitizerArgs(Args).needsAsanRt()) {
CmdArgs.push_back(Args.MakeArgString("-debug"));
CmdArgs.push_back(Args.MakeArgString("-incremental:no"));
SmallString<128> LibSanitizer(getToolChain().getDriver().ResourceDir);
// FIXME: Handle 64-bit. Use asan_dll_thunk.dll when building a DLL.
llvm::sys::path::append(

View File

@ -14,5 +14,6 @@
// RUN: %clang_cl /Tc%s -### -fsanitize=address 2>&1 | FileCheck --check-prefix=ASAN %s
// ASAN: link.exe
// ASAN: "-debug"
// ASAN: "-incremental:no"
// ASAN: "{{.*}}clang_rt.asan-i386.lib"
// ASAN: "{{.*}}cl-link{{.*}}.obj"