[libcxx-commits] [libcxx] eceb401 - [libc++] Avoid -Wmacro-redefined in libc++ headers in the legacy test config
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Feb 9 05:38:43 PST 2022
Author: Louis Dionne
Date: 2022-02-09T08:38:06-05:00
New Revision: eceb40183cbb9442c7f42e7a4b8324abb50c32ab
URL: https://github.com/llvm/llvm-project/commit/eceb40183cbb9442c7f42e7a4b8324abb50c32ab
DIFF: https://github.com/llvm/llvm-project/commit/eceb40183cbb9442c7f42e7a4b8324abb50c32ab.diff
LOG: [libc++] Avoid -Wmacro-redefined in libc++ headers in the legacy test config
Added:
Modified:
libcxx/utils/libcxx/test/config.py
Removed:
################################################################################
diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py
index bc718298dc76c..a20ee6f2a5b66 100644
--- a/libcxx/utils/libcxx/test/config.py
+++ b/libcxx/utils/libcxx/test/config.py
@@ -308,8 +308,8 @@ def configure_compile_flags_header_includes(self):
if triple is not None:
cxx_target_headers = os.path.join(path, triple, cxx, version)
if os.path.isdir(cxx_target_headers):
- self.cxx.compile_flags += ['-I' + cxx_target_headers]
- self.cxx.compile_flags += ['-I' + cxx_headers]
+ self.cxx.compile_flags += ['-isystem ' + cxx_target_headers]
+ self.cxx.compile_flags += ['-isystem ' + cxx_headers]
if self.libcxx_obj_root is not None:
cxxabi_headers = os.path.join(self.libcxx_obj_root, 'include',
'c++build')
More information about the libcxx-commits
mailing list