[ios blink] Fix libjpeg_turbo build for arm64e Use the same conditions as arm64 for arm64e. Bug: chromium:40254930 Change-Id: Ie34f77ca97fbe7c3602360cb379565e7747433fa
diff --git a/BUILD.gn b/BUILD.gn index 7e5ca70..b423384 100644 --- a/BUILD.gn +++ b/BUILD.gn
@@ -7,7 +7,7 @@ import("//build/config/features.gni") import("//build/config/sanitizers/sanitizers.gni") -if (current_cpu == "arm" || current_cpu == "arm64") { +if (current_cpu == "arm" || current_cpu == "arm64" || current_cpu == "arm64e") { import("//build/config/arm.gni") } @@ -174,7 +174,8 @@ # and x64 MSan builds for now. } else if (current_cpu == "x86" || current_cpu == "x64") { defines = [ "WITH_SIMD" ] - } else if (current_cpu == "arm" || current_cpu == "arm64") { + } else if (current_cpu == "arm" || current_cpu == "arm64" || + current_cpu == "arm64e") { defines = [ "NEON_INTRINSICS", "WITH_SIMD", @@ -197,7 +198,8 @@ } else if (current_cpu == "x64") { deps += [ ":simd_asm" ] sources = [ "simd/x86_64/jsimd.c" ] - } else if (current_cpu == "arm" || current_cpu == "arm64") { + } else if (current_cpu == "arm" || current_cpu == "arm64" || + current_cpu == "arm64e") { include_dirs += [ "simd/arm/" ] sources = [ @@ -220,7 +222,7 @@ "simd/arm/aarch32/jchuff-neon.c", "simd/arm/aarch32/jsimd.c", ] - } else if (current_cpu == "arm64") { + } else if (current_cpu == "arm64" || current_cpu == "arm64e") { sources += [ "simd/arm/aarch64/jchuff-neon.c", "simd/arm/aarch64/jsimd.c",