Fix test suite configuration when no lit.site.cfg is available
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@291081 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -450,9 +450,11 @@ class Configuration(object):
|
|||||||
self.lit_config.fatal("cxx_headers='%s' is not a directory."
|
self.lit_config.fatal("cxx_headers='%s' is not a directory."
|
||||||
% cxx_headers)
|
% cxx_headers)
|
||||||
self.cxx.compile_flags += ['-I' + cxx_headers]
|
self.cxx.compile_flags += ['-I' + cxx_headers]
|
||||||
cxxabi_headers = os.path.join(self.libcxx_obj_root, 'include', 'c++-build')
|
if self.libcxx_obj_root is not None:
|
||||||
if os.path.isdir(cxxabi_headers):
|
cxxabi_headers = os.path.join(self.libcxx_obj_root, 'include',
|
||||||
self.cxx.compile_flags += ['-I' + cxxabi_headers]
|
'c++-build')
|
||||||
|
if os.path.isdir(cxxabi_headers):
|
||||||
|
self.cxx.compile_flags += ['-I' + cxxabi_headers]
|
||||||
|
|
||||||
def configure_config_site_header(self):
|
def configure_config_site_header(self):
|
||||||
# Check for a possible __config_site in the build directory. We
|
# Check for a possible __config_site in the build directory. We
|
||||||
|
|||||||
Reference in New Issue
Block a user