From 4bd772fe15d69e20fc67eec30a453403396ebd0f Mon Sep 17 00:00:00 2001 From: Kaido Kert Date: Mon, 17 Jul 2023 15:57:21 -0700 Subject: [PATCH] Another webp build fix (#948) Make the optimizations only have effect on Linux+Android. b/290060548 (cherry picked from commit e155920455e7eb0d316bd338181799634bd55a66) --- third_party/libwebp/BUILD.gn | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/third_party/libwebp/BUILD.gn b/third_party/libwebp/BUILD.gn index 8b6c4760f399..92fe5c47a004 100644 --- a/third_party/libwebp/BUILD.gn +++ b/third_party/libwebp/BUILD.gn @@ -93,7 +93,7 @@ libwebp_lib("libwebp_utils_enc") { config("libwebp_direct_config") { include_dirs = [ "." ] - if (is_starboard && !is_win) { + if (is_starboard && (target_os == "android" || target_os == "linux")) { if (current_cpu == "x64" || current_cpu == "x86") { cflags = [ "-msse2", @@ -113,8 +113,7 @@ config("libwebp_direct_config") { ] defines += [ "WEBP_HAVE_AVX2" ] } - if ((current_cpu == "arm" || current_cpu == "arm64") && arm_use_neon && - (target_os == "android" || target_os == "linux")) { + if ((current_cpu == "arm" || current_cpu == "arm64") && arm_use_neon ) { defines = [ "WEBP_HAVE_NEON" ] cflags = [ "-mfpu=neon" ] }