forked from OSchip/llvm-project
Fix test suite configuration when no lit.site.cfg is available
llvm-svn: 291081
This commit is contained in:
parent
2ced0edd1c
commit
c1d5d110a1
|
@ -450,9 +450,11 @@ class Configuration(object):
|
|||
self.lit_config.fatal("cxx_headers='%s' is not a directory."
|
||||
% cxx_headers)
|
||||
self.cxx.compile_flags += ['-I' + cxx_headers]
|
||||
cxxabi_headers = os.path.join(self.libcxx_obj_root, 'include', 'c++-build')
|
||||
if os.path.isdir(cxxabi_headers):
|
||||
self.cxx.compile_flags += ['-I' + cxxabi_headers]
|
||||
if self.libcxx_obj_root is not None:
|
||||
cxxabi_headers = os.path.join(self.libcxx_obj_root, 'include',
|
||||
'c++-build')
|
||||
if os.path.isdir(cxxabi_headers):
|
||||
self.cxx.compile_flags += ['-I' + cxxabi_headers]
|
||||
|
||||
def configure_config_site_header(self):
|
||||
# Check for a possible __config_site in the build directory. We
|
||||
|
|
Loading…
Reference in New Issue