[libcxxabi] r220509 - Only link the tests against -ldl on linux

Eric Fiselier eric at efcs.ca
Thu Oct 23 13:44:26 PDT 2014


Author: ericwf
Date: Thu Oct 23 15:44:25 2014
New Revision: 220509

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

Modified:
    libcxxabi/trunk/test/lit.cfg

Modified: libcxxabi/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/lit.cfg?rev=220509&r1=220508&r2=220509&view=diff
==============================================================================
--- libcxxabi/trunk/test/lit.cfg (original)
+++ libcxxabi/trunk/test/lit.cfg Thu Oct 23 15:44:25 2014
@@ -227,7 +227,7 @@ san = lit_config.params.get('llvm_use_sa
 if san is None:
     san = getattr(config, 'llvm_use_sanitizer', None)
 if san:
-    if not sys.platform.startswith('freebsd'):
+    if sys.platform == 'linux2':
         link_flags += ['-ldl']
     if san == 'Address':
         compile_flags += ['-fsanitize=address']





More information about the cfe-commits mailing list