File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -543,9 +543,9 @@ typedef __char32_t char32_t;
543543# endif
544544
545545// Clang modules take a significant compile time hit when pushing and popping diagnostics.
546- // Since all the headers are marked as system headers in the modulemap , we can simply disable this
547- // pushing and popping when building with clang modules .
548- # if !__has_feature(modules)
546+ // Since all the headers are marked as system headers unless _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER is defined , we can
547+ // simply disable this pushing and popping when _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER isn't defined .
548+ # ifdef _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER
549549# define _LIBCPP_PUSH_EXTENSION_DIAGNOSTICS \
550550 _LIBCPP_DIAGNOSTIC_PUSH \
551551 _LIBCPP_CLANG_DIAGNOSTIC_IGNORED (" -Wc++11-extensions" ) \
You can’t perform that action at this time.
0 commit comments