[cfe-commits] r167305 - /cfe/trunk/lib/Driver/Tools.cpp
Richard Smith
richard-llvm at metafoo.co.uk
Fri Nov 2 13:32:19 PDT 2012
Author: rsmith
Date: Fri Nov 2 15:32:19 2012
New Revision: 167305
URL: http://llvm.org/viewvc/llvm-project?rev=167305&view=rev
Log:
Add -lpthread when building with Ubsan on Linux, in preparation for making libclang-rt.ubsan pull in sanitizer_common, which in turn depends on pthreads.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=167305&r1=167304&r2=167305&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Fri Nov 2 15:32:19 2012
@@ -1517,6 +1517,7 @@
(Twine("libclang_rt.ubsan-") +
TC.getArchName() + ".a"));
CmdArgs.push_back(Args.MakeArgString(LibUbsan));
+ CmdArgs.push_back("-lpthread");
}
}
More information about the cfe-commits
mailing list