diff options
Diffstat (limited to 'community/chromium/gcc-arm.patch')
-rw-r--r-- | community/chromium/gcc-arm.patch | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/community/chromium/gcc-arm.patch b/community/chromium/gcc-arm.patch index fdbb4bb7be..7498954ac6 100644 --- a/community/chromium/gcc-arm.patch +++ b/community/chromium/gcc-arm.patch @@ -1,11 +1,13 @@ ---- ./third_party/zlib/BUILD.gn.orig +diff --git a/third_party/zlib/BUILD.gn b/third_party/zlib/BUILD.gn +index 1a9cd3b..728a011 100644 +--- ./third_party/zlib/BUILD.gn +++ ./third_party/zlib/BUILD.gn -@@ -67,7 +67,7 @@ - # implement the CRC32* instructions. These are optional in ARMv8.0." - # - Fuchsia just added a syscall for feature detection. - # TODO(cavalcantii): crbug.com/810125. -- if (!is_ios && !is_fuchsia) { -+ if (is_clang && !is_ios && !is_fuchsia) { - defines = [ "CRC32_ARMV8_CRC32" ] - if (is_android) { - defines += [ "ARMV8_OS_ANDROID" ] +@@ -16,7 +16,7 @@ config("zlib_internal_config") { + + use_arm_neon_optimizations = false + if (current_cpu == "arm" || current_cpu == "arm64") { +- if (arm_use_neon) { ++ if (arm_use_neon && is_clang) { + use_arm_neon_optimizations = true + } + } |