Disable aligned allocations on iOS armv7 targets due to lack of support. (#262)

This commit is contained in:
Chinmay Garde 2019-06-14 15:41:35 -07:00 committed by GitHub
parent 75660ad579
commit d1bbc1496a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",