Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: third_party/libpng/BUILD.gn

Issue 2074363002: skip neon intrinsics in libpng when neon is not available (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/libpng/libpng.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libpng/BUILD.gn
diff --git a/third_party/libpng/BUILD.gn b/third_party/libpng/BUILD.gn
index 5c61dcac8c198721c9f155a1760ef5bef6abef89..d12c616ed8dc8b34ac2ef530078650e57c8959a5 100644
--- a/third_party/libpng/BUILD.gn
+++ b/third_party/libpng/BUILD.gn
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import("//build/config/chromecast_build.gni")
+import("//build/config/arm.gni")
config("libpng_config") {
include_dirs = [ "." ]
@@ -67,7 +68,7 @@ source_set("libpng_sources") {
"contrib/intel/intel_init.c",
]
defines += [ "PNG_INTEL_SSE_OPT=1" ]
- } else if (current_cpu == "arm" || current_cpu == "arm64") {
+ } else if ((current_cpu == "arm" || current_cpu == "arm64") && arm_use_neon) {
sources += [
"arm/arm_init.c",
"arm/filter_neon_intrinsics.c",
« no previous file with comments | « no previous file | third_party/libpng/libpng.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698