Print compiler path during configuration and pass more flags to the linker
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@226576 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9ef5d45b2c
commit
e93e0347a6
@ -62,7 +62,10 @@ class Configuration(object):
|
|||||||
self.configure_link_flags()
|
self.configure_link_flags()
|
||||||
self.configure_sanitizer()
|
self.configure_sanitizer()
|
||||||
self.configure_features()
|
self.configure_features()
|
||||||
|
|
||||||
|
def print_config_info(self):
|
||||||
# Print the final compile and link flags.
|
# 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 flags: %s' % self.cxx.flags)
|
||||||
self.lit_config.note('Using compile flags: %s' % self.cxx.compile_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)
|
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',
|
llvm_symbolizer = lit.util.which('llvm-symbolizer',
|
||||||
symbolizer_search_paths)
|
symbolizer_search_paths)
|
||||||
# Setup the sanitizer compile flags
|
# 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'):
|
if sys.platform.startswith('linux'):
|
||||||
self.cxx.link_flags += ['-ldl']
|
self.cxx.link_flags += ['-ldl']
|
||||||
if san == 'Address':
|
if san == 'Address':
|
||||||
|
@ -57,4 +57,5 @@ config_module = __import__(config_module_name, fromlist=['Configuration'])
|
|||||||
|
|
||||||
configuration = config_module.Configuration(lit_config, config)
|
configuration = config_module.Configuration(lit_config, config)
|
||||||
configuration.configure()
|
configuration.configure()
|
||||||
|
configuration.print_config_info()
|
||||||
config.test_format = configuration.get_test_format()
|
config.test_format = configuration.get_test_format()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user