mirror of
https://github.com/intel/llvm.git
synced 2026-02-08 00:50:03 +08:00
Add -lm to sanitizer link arguments.
We'll need to intercept a few function in libm. llvm-svn: 193644
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user