Fix libc++abi test config after recent libc++ changes

llvm-svn: 283962
This commit is contained in:
Eric Fiselier 2016-10-12 01:19:16 +00:00
parent 4ff62b187e
commit c3dc89e4ab
1 changed files with 4 additions and 0 deletions

View File

@ -55,6 +55,10 @@ class Configuration(LibcxxConfiguration):
cxx_headers = self.get_lit_conf(
'cxx_headers',
os.path.join(self.libcxx_src_root, '/include'))
if cxx_headers == '':
self.lit_config.note('using the systems c++ headers')
else:
self.cxx.compile_flags += ['-nostdinc++']
if not os.path.isdir(cxx_headers):
self.lit_config.fatal("cxx_headers='%s' is not a directory."
% cxx_headers)