[libcxx] r224674 - Move unconditional test compile and link flags into their configuration functions.

Eric Fiselier eric at efcs.ca
Fri Dec 19 20:14:14 PST 2014


Author: ericwf
Date: Fri Dec 19 22:14:14 2014
New Revision: 224674

URL: http://llvm.org/viewvc/llvm-project?rev=224674&view=rev
Log:
Move unconditional test compile and link flags into their configuration functions.

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=224674&r1=224673&r2=224674&view=diff
==============================================================================
--- libcxx/trunk/test/lit.cfg (original)
+++ libcxx/trunk/test/lit.cfg Fri Dec 19 22:14:14 2014
@@ -213,8 +213,8 @@ class Configuration(object):
         self.obj_root = None
         self.library_root = None
         self.env = {}
-        self.compile_flags = ['-nostdinc++']
-        self.link_flags = ['-nodefaultlibs']
+        self.compile_flags = []
+        self.link_flags = []
         self.use_system_lib = False
         self.use_clang_verify = False
         self.use_ccache = False
@@ -451,6 +451,7 @@ class Configuration(object):
 
     def configure_compile_flags(self):
         # Configure extra compiler flags.
+        self.compile_flags += ['-nostdinc++']
         self.compile_flags += ['-I' + self.src_root + '/include',
                                '-I' + self.src_root + '/test/support']
         if sys.platform.startswith('linux'):
@@ -485,6 +486,7 @@ class Configuration(object):
 
 
     def configure_link_flags(self):
+        self.link_flags += ['-nodefaultlibs']
         # Configure library search paths
         abi_library_path = self.get_lit_conf('abi_library_path', '')
         if not self.use_system_lib:





More information about the cfe-commits mailing list