[libcxx] Fixing the Linux sanitizer builds

llvm-svn: 256591
This commit is contained in:
Ben Craig 2015-12-29 22:43:17 +00:00
parent 7281c357b1
commit e238372258
1 changed files with 2 additions and 1 deletions

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