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

Unified Diff: tools/gn/args.cc

Issue 1890133002: [MIPS] Fix gn_unittests LoaderTest.Foo test (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 60ee7b2ce33d385f58957c9f01858536a3c4d147..1034ea1f31f92ba7015dcfacf68dd767d461519d 100644
--- a/tools/gn/args.cc
+++ b/tools/gn/args.cc
@@ -245,6 +245,7 @@ void Args::SetSystemVarsLocked(Scope* dest) const {
static const char kX86[] = "x86";
static const char kX64[] = "x64";
static const char kArm[] = "arm";
+ static const char kMips[] = "mipsel";
const char* arch = nullptr;
// Set the host CPU architecture based on the underlying OS, not
@@ -256,6 +257,8 @@ void Args::SetSystemVarsLocked(Scope* dest) const {
arch = kX64;
else if (os_arch.substr(3) == "arm")
arch = kArm;
+ else if (os_arch == "mips")
+ arch = kMips;
else
CHECK(false) << "OS architecture not handled.";
« 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