[libcxx] r220510 - Only link tests against -ldl on linux

Eric Fiselier eric at efcs.ca
Thu Oct 23 13:45:37 PDT 2014


Author: ericwf
Date: Thu Oct 23 15:45:37 2014
New Revision: 220510

URL: http://llvm.org/viewvc/llvm-project?rev=220510&view=rev
Log:
Only link tests against -ldl on linux

Modified:
    libcxx/trunk/test/lit.cfg

Modified: libcxx/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/lit.cfg?rev=220510&r1=220509&r2=220510&view=diff
==============================================================================
--- libcxx/trunk/test/lit.cfg (original)
+++ libcxx/trunk/test/lit.cfg Thu Oct 23 15:45:37 2014
@@ -431,7 +431,7 @@ class Configuration(object):
         san = self.get_lit_conf('llvm_use_sanitizer', '').strip()
         if san:
             self.compile_flags += ['-fno-omit-frame-pointer']
-            if not sys.platform.startswith('freebsd'):
+            if sys.platform == 'linux2':
                 self.link_flags += ['-ldl']
             if san == 'Address':
                 self.compile_flags += ['-fsanitize=address']





More information about the cfe-commits mailing list