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

Unified Diff: webrtc/build/webrtc.gni

Issue 1181373004: Add a [rtc_]build_with_neon variable to unify conditions. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix comments. Created 5 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 | « webrtc/build/common.gypi ('k') | webrtc/common_audio/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/build/webrtc.gni
diff --git a/webrtc/build/webrtc.gni b/webrtc/build/webrtc.gni
index d03a4ed8c98827df63f59c2ce465348e0ccd9831..fa059965dd4ee8020dc26d898859bf4593391544 100644
--- a/webrtc/build/webrtc.gni
+++ b/webrtc/build/webrtc.gni
@@ -105,10 +105,10 @@ declare_args() {
rtc_use_openmax_dl = false
}
- # WebRTC builds ARM v7 Neon instruction set optimized code for both iOS and
- # Android, which is why we currently cannot use the variables in
- # //build/config/arm.gni (since it disables Neon for Android).
- rtc_build_armv7_neon = current_cpu == "arm" && arm_version >= 7
+ # Determines whether NEON code will be built.
+ rtc_build_with_neon = (current_cpu == "arm" &&
+ (arm_use_neon == 1 || arm_optionally_use_neon == 1)) ||
+ current_cpu == "arm64"
}
# Make it possible to provide custom locations for some libraries (move these
« no previous file with comments | « webrtc/build/common.gypi ('k') | webrtc/common_audio/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698