[libcxx] Fixing the Linux sanitizer builds

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@256591 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ben Craig
2015-12-29 22:43:17 +00:00
parent 75ea3d368d
commit 424a05ccfe

View File

@@ -142,7 +142,8 @@ class LinuxLocalTI(DefaultTargetInfo):
flags += ['-lunwind', '-ldl']
else:
flags += ['-lgcc_s', '-lgcc']
if self.full_config.get_lit_bool('use_sanitizer', False):
san = self.get_lit_conf('use_sanitizer', '').strip()
if san:
# The libraries and their order are taken from the
# linkSanitizerRuntimeDeps function in
# clang/lib/Driver/Tools.cpp