From d1bbc1496ab1e239169f1dcb29e706e76c46ddaa Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Fri, 14 Jun 2019 15:41:35 -0700 Subject: [PATCH] Disable aligned allocations on iOS armv7 targets due to lack of support. (#262) --- build/config/compiler/BUILD.gn | 5 +++++ 1 file changed, 5 insertions(+) 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",