[PATCH] D14440: [tsan] Add Clang frontend support for TSan on OS X
Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 6 07:11:54 PST 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL252310: [tsan] Add Clang frontend support for TSan on OS X (authored by kuba.brecka).
Changed prior to commit:
http://reviews.llvm.org/D14440?vs=39524&id=39526#toc
Repository:
rL LLVM
http://reviews.llvm.org/D14440
Files:
cfe/trunk/lib/Driver/ToolChains.cpp
Index: cfe/trunk/lib/Driver/ToolChains.cpp
===================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp
+++ cfe/trunk/lib/Driver/ToolChains.cpp
@@ -389,6 +389,8 @@
AddLinkSanitizerLibArgs(Args, CmdArgs, "asan");
if (Sanitize.needsUbsanRt())
AddLinkSanitizerLibArgs(Args, CmdArgs, "ubsan");
+ if (Sanitize.needsTsanRt())
+ AddLinkSanitizerLibArgs(Args, CmdArgs, "tsan");
// Otherwise link libSystem, then the dynamic runtime library, and finally any
// target specific static runtime library.
@@ -1199,6 +1201,7 @@
if (!isMacosxVersionLT(10, 9))
Res |= SanitizerKind::Vptr;
Res |= SanitizerKind::SafeStack;
+ Res |= SanitizerKind::Thread;
}
return Res;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14440.39526.patch
Type: text/x-patch
Size: 753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151106/1750daad/attachment.bin>
More information about the cfe-commits
mailing list