Fix libc++abi test config after recent libc++ changes
authorEric Fiselier <eric@efcs.ca>
Wed, 12 Oct 2016 01:19:16 +0000 (01:19 +0000)
committerEric Fiselier <eric@efcs.ca>
Wed, 12 Oct 2016 01:19:16 +0000 (01:19 +0000)
llvm-svn: 283962

libcxxabi/test/libcxxabi/test/config.py

index 8b585eb..1713ba9 100644 (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)