r193644 - Add -lm to sanitizer link arguments.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Tue Oct 29 12:48:47 PDT 2013


Author: eugenis
Date: Tue Oct 29 14:48:47 2013
New Revision: 193644

URL: http://llvm.org/viewvc/llvm-project?rev=193644&view=rev
Log:
Add -lm to sanitizer link arguments.

We'll need to intercept a few function in libm.

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=193644&r1=193643&r2=193644&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Tue Oct 29 14:48:47 2013
@@ -1757,6 +1757,7 @@ static void addSanitizerRTLinkFlagsLinux
   CmdArgs.push_back("-lpthread");
   CmdArgs.push_back("-lrt");
   CmdArgs.push_back("-ldl");
+  CmdArgs.push_back("-lm");
 
   // If possible, use a dynamic symbols file to export the symbols from the
   // runtime library. If we can't do so, use -export-dynamic instead to export





More information about the cfe-commits mailing list