Skip to content

Commit eceb401

Browse files
committed
[libc++] Avoid -Wmacro-redefined in libc++ headers in the legacy test config
1 parent 57f7c7d commit eceb401

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/utils/libcxx/test/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ def configure_compile_flags_header_includes(self):
308308
if triple is not None:
309309
cxx_target_headers = os.path.join(path, triple, cxx, version)
310310
if os.path.isdir(cxx_target_headers):
311-
self.cxx.compile_flags += ['-I' + cxx_target_headers]
312-
self.cxx.compile_flags += ['-I' + cxx_headers]
311+
self.cxx.compile_flags += ['-isystem ' + cxx_target_headers]
312+
self.cxx.compile_flags += ['-isystem ' + cxx_headers]
313313
if self.libcxx_obj_root is not None:
314314
cxxabi_headers = os.path.join(self.libcxx_obj_root, 'include',
315315
'c++build')

0 commit comments

Comments
 (0)