[libcxx] r174527 - [tests] Enable use_system_lib support on Linux.

Daniel Dunbar daniel at zuster.org
Wed Feb 6 09:45:53 PST 2013


Author: ddunbar
Date: Wed Feb  6 11:45:53 2013
New Revision: 174527

URL: http://llvm.org/viewvc/llvm-project?rev=174527&view=rev
Log:
[tests] Enable use_system_lib support on Linux.
 - Patch by Michael van der Westhuizen.

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=174527&r1=174526&r2=174527&view=diff
==============================================================================
--- libcxx/trunk/test/lit.cfg (original)
+++ libcxx/trunk/test/lit.cfg Wed Feb  6 11:45:53 2013
@@ -267,7 +267,8 @@ if sys.platform == 'darwin':
         exec_env['DYLD_LIBRARY_PATH'] = os.path.join(libcxx_obj_root, 'lib')
 elif sys.platform == 'linux2':
     libraries += ['-lsupc++', '-lgcc_eh', '-lc', '-lm', '-lpthread', '-lrt', '-lgcc_s']
-    libraries += ['-Wl,-R', libcxx_obj_root + '/lib']
+    if not use_system_lib:
+        libraries += ['-Wl,-R', libcxx_obj_root + '/lib']
 else:
     lit.fatal("unrecognized system")
 





More information about the cfe-commits mailing list