[libcxx] r223594 - Unify and cleanup rpath handling in tests.

Eric Fiselier eric at efcs.ca
Sat Dec 6 14:08:51 PST 2014


Author: ericwf
Date: Sat Dec  6 16:08:51 2014
New Revision: 223594

URL: http://llvm.org/viewvc/llvm-project?rev=223594&view=rev
Log:
Unify and cleanup rpath handling in tests.

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=223594&r1=223593&r2=223594&view=diff
==============================================================================
--- libcxx/trunk/test/lit.cfg (original)
+++ libcxx/trunk/test/lit.cfg Sat Dec  6 16:08:51 2014
@@ -234,7 +234,6 @@ class Configuration(object):
         self.configure_obj_root()
         self.configure_use_system_lib()
         self.configure_use_clang_verify()
-        self.configure_env()
         self.configure_std_flag()
         self.configure_compile_flags()
         self.configure_link_flags()
@@ -444,12 +443,12 @@ class Configuration(object):
     def configure_link_flags(self):
         # Configure library search paths
         abi_library_path = self.get_lit_conf('abi_library_path', '')
-        self.link_flags += ['-L' + self.obj_root + '/lib']
         if not self.use_system_lib:
-            self.link_flags += ['-Wl,-rpath', '-Wl,' + self.obj_root + '/lib']
+            self.link_flags += ['-L' + self.obj_root + '/lib']
+            self.link_flags += ['-Wl,-rpath,' + self.obj_root + '/lib']
         if abi_library_path:
             self.link_flags += ['-L' + abi_library_path,
-                                '-Wl,-rpath', '-Wl,' + abi_library_path]
+                                '-Wl,-rpath,' + abi_library_path]
         # Configure libraries
         self.link_flags += ['-lc++']
         link_flags_str = self.get_lit_conf('link_flags')
@@ -559,12 +558,6 @@ class Configuration(object):
             self.lit_config.note(
                 "inferred target_triple as: %r" % self.config.target_triple)
 
-    def configure_env(self):
-        # Configure extra linker parameters.
-        if sys.platform == 'darwin':
-            if not self.use_system_lib:
-                self.env['DYLD_LIBRARY_PATH'] = os.path.join(self.obj_root,
-                                                             'lib')
 
 
 # name: The name of this test suite.





More information about the cfe-commits mailing list