forked from OSchip/llvm-project
clang-cl: Pass -incremental:no to linker when using ASan
llvm-svn: 189664
This commit is contained in:
parent
8ddfa8489b
commit
d024c1c803
|
@ -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(
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue