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

Unified Diff: build/config/arm.gni

Issue 2543953002: gn: Make arm_arch configurable (Closed)
Patch Set: Created 4 years 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 | no next file » | no next file with comments »
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 27ed7738abced64765080e78be18d9e7eadb81c9..47c836a222190eb8ab3ea8daec385f2b5bdf2ac7 100644
--- a/build/config/arm.gni
+++ b/build/config/arm.gni
@@ -14,6 +14,10 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
# platforms.
arm_version = 7
+ # The ARM architecture. This will be a string like "armv6" or "armv7-a".
+ # An empty string means to use the default for the arm_version.
+ arm_arch = ""
+
# The ARM floating point mode. This is either the string "hard", "soft", or
# "softfp". An empty string means to use the default one for the
# arm_version.
@@ -48,7 +52,9 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
}
if (arm_version == 6) {
- arm_arch = "armv6"
+ if (arm_arch == "") {
+ arm_arch = "armv6"
+ }
if (arm_tune != "") {
arm_tune = ""
}
@@ -58,7 +64,9 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
arm_fpu = "vfp"
arm_use_thumb = false
} else if (arm_version == 7) {
- arm_arch = "armv7-a"
+ if (arm_arch == "") {
+ arm_arch = "armv7-a"
+ }
if (arm_tune == "") {
arm_tune = "generic-armv7-a"
}
@@ -80,7 +88,9 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
arm_fpu = "vfpv3-d16"
}
} else if (arm_version == 8) {
- arm_arch = "armv8-a"
+ if (arm_arch == "") {
+ arm_arch = "armv8-a"
+ }
if (arm_tune == "") {
arm_tune = "generic-armv8-a"
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698