From e6e69df5984636800260e1076cc1261657489b47 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Mon, 24 Nov 2014 23:46:42 +0000 Subject: [PATCH] Print lit configuration information after all configuration is done. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@222711 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/lit.cfg | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/test/lit.cfg b/test/lit.cfg index 475e78c22..dc72b46b7 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -217,9 +217,8 @@ class Configuration(object): self.src_root = None self.obj_root = None self.env = {} - self.compile_flags = [] - self.library_paths = [] - self.link_flags = [] + self.compile_flags = ['-nostdinc++'] + self.link_flags = ['-nodefaultlibs'] self.use_system_lib = False self.use_clang_verify = False @@ -258,13 +257,19 @@ class Configuration(object): self.configure_link_flags() self.configure_sanitizer() self.configure_features() + # Print the final compile and link flags. + self.lit_config.note('Using compile flags: %s' % self.compile_flags) + self.lit_config.note('Using link flags: %s' % self.link_flags) + # Print as list to prevent "set([...])" from being printed. + self.lit_config.note('Using available_features: %s' % + list(self.config.available_features)) def get_test_format(self): return LibcxxTestFormat( self.cxx, self.use_clang_verify, - cpp_flags=['-nostdinc++'] + self.compile_flags, - ld_flags=['-nodefaultlibs'] + self.link_flags, + cpp_flags=self.compile_flags, + ld_flags=self.link_flags, exec_env=self.env) def configure_cxx(self): @@ -436,8 +441,6 @@ class Configuration(object): else: self.lit_config.fatal("unrecognized system: %r" % sys.platform) - self.lit_config.note( - "inferred link_flags as: %r" % self.link_flags) if link_flags_str: self.link_flags += shlex.split(link_flags_str)