[libcxxabi] r232529 - Let libc++'s LIT configuration setup our linker paths and env.

Eric Fiselier eric at efcs.ca
Tue Mar 17 12:45:21 PDT 2015


Author: ericwf
Date: Tue Mar 17 14:45:21 2015
New Revision: 232529

URL: http://llvm.org/viewvc/llvm-project?rev=232529&view=rev
Log:
Let libc++'s LIT configuration setup our linker paths and env.

Modified:
    libcxxabi/trunk/test/libcxxabi/test/config.py
    libcxxabi/trunk/test/lit.site.cfg.in

Modified: libcxxabi/trunk/test/libcxxabi/test/config.py
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/libcxxabi/test/config.py?rev=232529&r1=232528&r2=232529&view=diff
==============================================================================
--- libcxxabi/trunk/test/libcxxabi/test/config.py (original)
+++ libcxxabi/trunk/test/libcxxabi/test/config.py Tue Mar 17 14:45:21 2015
@@ -10,7 +10,7 @@ class Configuration(LibcxxConfiguration)
         super(Configuration, self).__init__(lit_config, config)
         self.libcxxabi_src_root = None
         self.libcxxabi_obj_root = None
-        self.libcxxabi_lib_root = None
+        self.abi_library_path = None
         self.libcxx_src_root = None
 
     def configure_src_root(self):
@@ -23,8 +23,6 @@ class Configuration(LibcxxConfiguration)
 
     def configure_obj_root(self):
         self.libcxxabi_obj_root = self.get_lit_conf('libcxxabi_obj_root')
-        self.libcxxabi_lib_root = self.get_lit_conf('libcxxabi_lib_root',
-                                                     self.libcxxabi_obj_root)
         super(Configuration, self).configure_obj_root()
 
     def configure_compile_flags(self):
@@ -60,12 +58,6 @@ class Configuration(LibcxxConfiguration)
     def configure_compile_flags_no_monotonic_clock(self):
         pass
 
-    def configure_link_flags_abi_library_path(self):
-        # Configure ABI library paths.
-        if self.libcxxabi_lib_root:
-            self.cxx.link_flags += ['-L' + self.libcxxabi_lib_root,
-                                    '-Wl,-rpath,' + self.libcxxabi_lib_root]
-
     # TODO(ericwf): Remove this. This is a hack for OS X.
     # libc++ *should* export all of the symbols found in libc++abi on OS X.
     # For this reason LibcxxConfiguration will not link libc++abi in OS X.
@@ -75,11 +67,3 @@ class Configuration(LibcxxConfiguration)
     def configure_link_flags_abi_library(self):
         self.cxx.link_flags += ['-lc++abi']
 
-    def configure_env(self):
-        library_paths = []
-        if self.libcxxabi_lib_root:
-            library_paths += [self.libcxxabi_lib_root]
-        if self.cxx_library_root:
-            library_paths += [self.cxx_library_root]
-        if sys.platform == 'darwin' and library_paths:
-            self.env['DYLD_LIBRARY_PATH'] = ':'.join(library_paths)

Modified: libcxxabi/trunk/test/lit.site.cfg.in
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/lit.site.cfg.in?rev=232529&r1=232528&r2=232529&view=diff
==============================================================================
--- libcxxabi/trunk/test/lit.site.cfg.in (original)
+++ libcxxabi/trunk/test/lit.site.cfg.in Tue Mar 17 14:45:21 2015
@@ -2,7 +2,7 @@
 config.cxx_under_test           = "@LIBCXXABI_COMPILER@"
 config.libcxxabi_src_root       = "@LIBCXXABI_SOURCE_DIR@"
 config.libcxxabi_obj_root       = "@LIBCXXABI_BINARY_DIR@"
-config.libcxxabi_lib_root       = "@LIBCXXABI_LIBRARY_DIR@"
+config.abi_library_path         = "@LIBCXXABI_LIBRARY_DIR@"
 config.libcxx_src_root          = "@LIBCXXABI_LIBCXX_PATH@"
 config.cxx_headers              = "@LIBCXXABI_LIBCXX_INCLUDES@"
 config.cxx_library_root         = "@LIBCXXABI_LIBCXX_LIBRARY_PATH@"





More information about the cfe-commits mailing list