Merge "Disable a warning that libc++'s headers trip."
diff --git a/cc/config/clang.go b/cc/config/clang.go
index a33db01..9201989 100644
--- a/cc/config/clang.go
+++ b/cc/config/clang.go
@@ -135,6 +135,9 @@
// Turn off -Wthread-safety-negative, to avoid breaking projects that use -Weverything.
"-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS",
"-Wno-thread-safety-negative",
+
+ // libc++'s math.h has an #include_next outside of system_headers.
+ "-Wno-gnu-include-next",
}, " "))
pctx.StaticVariable("ClangExtraTargetCflags", strings.Join([]string{