From eceb40183cbb9442c7f42e7a4b8324abb50c32ab Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Wed, 9 Feb 2022 08:38:06 -0500 Subject: [PATCH] [libc++] Avoid -Wmacro-redefined in libc++ headers in the legacy test config --- libcxx/utils/libcxx/test/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py index bc71829..a20ee6f 100644 --- a/libcxx/utils/libcxx/test/config.py +++ b/libcxx/utils/libcxx/test/config.py @@ -308,8 +308,8 @@ class Configuration(object): 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') -- 2.7.4