r189664 - clang-cl: Pass -incremental:no to linker when using ASan
Hans Wennborg
hans at hanshq.net
Fri Aug 30 03:50:52 PDT 2013
Author: hans
Date: Fri Aug 30 05:50:52 2013
New Revision: 189664
URL: http://llvm.org/viewvc/llvm-project?rev=189664&view=rev
Log:
clang-cl: Pass -incremental:no to linker when using ASan
Modified:
cfe/trunk/lib/Driver/Tools.cpp
cfe/trunk/test/Driver/cl-link.c
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=189664&r1=189663&r2=189664&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Fri Aug 30 05:50:52 2013
@@ -6573,6 +6573,7 @@ void visualstudio::Link::ConstructJob(Co
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(
Modified: cfe/trunk/test/Driver/cl-link.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/cl-link.c?rev=189664&r1=189663&r2=189664&view=diff
==============================================================================
--- cfe/trunk/test/Driver/cl-link.c (original)
+++ cfe/trunk/test/Driver/cl-link.c Fri Aug 30 05:50:52 2013
@@ -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"
More information about the cfe-commits
mailing list