[libcxx] r226576 - Print compiler path during configuration and pass more flags to the linker
Eric Fiselier
eric at efcs.ca
Tue Jan 20 08:26:48 PST 2015
Author: ericwf
Date: Tue Jan 20 10:26:48 2015
New Revision: 226576
URL: http://llvm.org/viewvc/llvm-project?rev=226576&view=rev
Log:
Print compiler path during configuration and pass more flags to the linker
Modified:
libcxx/trunk/test/libcxx/test/config.py
libcxx/trunk/test/lit.cfg
Modified: libcxx/trunk/test/libcxx/test/config.py
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/test/config.py?rev=226576&r1=226575&r2=226576&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/test/config.py (original)
+++ libcxx/trunk/test/libcxx/test/config.py Tue Jan 20 10:26:48 2015
@@ -62,7 +62,10 @@ class Configuration(object):
self.configure_link_flags()
self.configure_sanitizer()
self.configure_features()
+
+ def print_config_info(self):
# Print the final compile and link flags.
+ self.lit_config.note('Using compiler: %s' % self.cxx.path)
self.lit_config.note('Using flags: %s' % self.cxx.flags)
self.lit_config.note('Using compile flags: %s' % self.cxx.compile_flags)
self.lit_config.note('Using link flags: %s' % self.cxx.link_flags)
@@ -410,7 +413,7 @@ class Configuration(object):
llvm_symbolizer = lit.util.which('llvm-symbolizer',
symbolizer_search_paths)
# Setup the sanitizer compile flags
- self.cxx.compile_flags += ['-g', '-fno-omit-frame-pointer']
+ self.cxx.flags += ['-g', '-fno-omit-frame-pointer']
if sys.platform.startswith('linux'):
self.cxx.link_flags += ['-ldl']
if san == 'Address':
Modified: libcxx/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/lit.cfg?rev=226576&r1=226575&r2=226576&view=diff
==============================================================================
--- libcxx/trunk/test/lit.cfg (original)
+++ libcxx/trunk/test/lit.cfg Tue Jan 20 10:26:48 2015
@@ -57,4 +57,5 @@ config_module = __import__(config_module
configuration = config_module.Configuration(lit_config, config)
configuration.configure()
+configuration.print_config_info()
config.test_format = configuration.get_test_format()
More information about the cfe-commits
mailing list