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

Unified Diff: tools/gn/args.cc

Issue 1920033007: Fix arm detection code in gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/args.cc
diff --git a/tools/gn/args.cc b/tools/gn/args.cc
index 496ba18a135632bac42dbcf5b2993eed98f514fd..d83c6789793a541b46386d07e3eeeec941c6102f 100644
--- a/tools/gn/args.cc
+++ b/tools/gn/args.cc
@@ -242,7 +242,7 @@ void Args::SetSystemVarsLocked(Scope* dest) const {
arch = kX86;
else if (os_arch == "x86_64")
arch = kX64;
- else if (os_arch.substr(3) == "arm")
+ else if (os_arch.substr(0, 3) == "arm")
arch = kArm;
else if (os_arch == "mips")
arch = kMips;
« 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