diff options
-rw-r--r-- | gn/BUILD.gn | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gn/BUILD.gn b/gn/BUILD.gn index 87d24b0534..fdf14709fe 100644 --- a/gn/BUILD.gn +++ b/gn/BUILD.gn @@ -298,6 +298,11 @@ config("warnings") { # We're pretty sure it's actually 8-byte alignment. cflags += [ "-Wno-over-aligned" ] } + if (target_cpu == "x86" && is_android) { + # Clang seems to think new/malloc will only be 4-byte aligned on 32-bit x86 Android builds. + # We're pretty sure it's actually 8-byte alignment. See OverAlignedTest.cpp for more info. + cflags += [ "-Wno-over-aligned" ] + } # Shouldn't be necessary for local builds. With distributed Windows builds, files may lose # their case during copy, causing case-sensitivity mismatch on remote machines. |