diff options
author | Dan Albert <danalbert@google.com> | 2018-02-07 17:24:42 -0800 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2018-02-07 17:24:42 -0800 |
commit | f2ceea7f1f540d952e5d44284ef7bd682601af4c (patch) | |
tree | 56a4ade02cfa78b54607cdb6ce61c0a71c1d7150 /cc/config/clang.go | |
parent | bc203622e6ea4c3a6773c64c1bcc22b90b12b275 (diff) | |
download | build_soong-f2ceea7f1f540d952e5d44284ef7bd682601af4c.tar.gz build_soong-f2ceea7f1f540d952e5d44284ef7bd682601af4c.tar.bz2 build_soong-f2ceea7f1f540d952e5d44284ef7bd682601af4c.zip |
Disable a warning that libc++'s headers trip.
Test: make checkbuild
Bug: None
Change-Id: I117bd9ef3f4f3c8792f4b6692d7b70ad69b6922d
Diffstat (limited to 'cc/config/clang.go')
-rw-r--r-- | cc/config/clang.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/config/clang.go b/cc/config/clang.go index a33db01e..92019897 100644 --- a/cc/config/clang.go +++ b/cc/config/clang.go @@ -135,6 +135,9 @@ func init() { // 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{ |