From 814b625303f15b86c64c88a2685413dde64e7a1b Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sat, 20 Dec 2014 04:14:14 +0000 Subject: [PATCH] Move unconditional test compile and link flags into their configuration functions. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@224674 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/lit.cfg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/lit.cfg b/test/lit.cfg index 9df01375..b99deb39 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -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: