From 424a05ccfe87ecf65180eb4464a6cc5dc19cd7d7 Mon Sep 17 00:00:00 2001 From: Ben Craig Date: Tue, 29 Dec 2015 22:43:17 +0000 Subject: [PATCH] [libcxx] Fixing the Linux sanitizer builds git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@256591 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/libcxx/test/target_info.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/libcxx/test/target_info.py b/test/libcxx/test/target_info.py index c3cefb3bb..927d7c56b 100644 --- a/test/libcxx/test/target_info.py +++ b/test/libcxx/test/target_info.py @@ -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