diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index e96b086b28e..c612a152295 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -189,6 +189,11 @@ config("compiler") { "-arch", "armv7", ] + + # Aligned allocation are only available on iOS 11 or above on armv7. + # Till we support older iOS version, disabled aligned allocations for this + # target architecture. + common_mac_flags += [ "-fno-aligned-allocation" ] } else if (current_cpu == "arm64") { common_mac_flags += [ "-arch",