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

Unified Diff: build/config/arm.gni

Issue 137493004: Hook up ARM architecture flags to GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | build/config/compiler/BUILD.gn » ('j') | build/config/compiler/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/arm.gni
diff --git a/build/config/arm.gni b/build/config/arm.gni
index 1feec385aae60c853b2c01f3a388b706d45e1090..ead3cf77773783b9840236ed0e2e3836b8918031 100644
--- a/build/config/arm.gni
+++ b/build/config/arm.gni
@@ -7,3 +7,35 @@ declare_args() {
# platforms.
arm_version = 7
}
+
+if (is_android) {
+ arm_use_neon = false
+ # Our version of arm_neon_optional from common.gypi. This is not used in the
+ # current build so is commented out for now.
+ #arm_optionally_use_neon = false
+} else {
+ arm_use_neon = true
+ #arm_optionally_use_neon = true
+}
+
+if (arm_version == 6) {
+ arm_arch = "armv6"
+ arm_tune = ""
+ arm_float_abi = "softfp"
+ arm_fpu = "vfp"
+ # Thumb is a reduced instruction set available on some ARM processors that
+ # has increased code density.
+ arm_use_thumb = false
+
+} else if (arm_version == 7) {
+ arm_arch = "armv7-a"
+ arm_tune = "cortex-a8"
+ arm_float_abi = "softfp"
+ arm_use_thumb = true
+
+ if (arm_use_neon) {
+ arm_fpu = "neon"
+ } else {
+ arm_fpu = "vfpv3-d16"
+ }
+}
« no previous file with comments | « no previous file | build/config/compiler/BUILD.gn » ('j') | build/config/compiler/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698