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

Unified Diff: build/toolchain/linux/BUILD.gn

Issue 143963006: [MIPS] Set make_global_settings correctly for MIPS-Linux (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Style change. 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 | « build/config/sysroot.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/toolchain/linux/BUILD.gn
diff --git a/build/toolchain/linux/BUILD.gn b/build/toolchain/linux/BUILD.gn
index 30dc022096d05c386dbb45e3d43659dcb2c6d2ba..74d287fec689eece71a3270f5771895f76434e11 100644
--- a/build/toolchain/linux/BUILD.gn
+++ b/build/toolchain/linux/BUILD.gn
@@ -5,6 +5,7 @@
import("../clang.gni")
import("../goma.gni")
import("../gcc_toolchain.gni")
+import("//build/config/sysroot.gni")
if (is_gyp) {
# Set the compilers for GYP to use. This logic is only relevant to GYP where
@@ -15,7 +16,15 @@ if (is_gyp) {
# Set the GYP header for all toolchains when running under Clang.
make_global_settings = make_clang_global_settings
} else {
- make_global_settings = ""
+ if (cpu_arch == "mipsel") {
+ make_global_settings =
+ "['CC', '$sysroot/../bin/mipsel-linux-gnu-gcc']," +
+ "['CXX', '$sysroot/../bin/mipsel-linux-gnu-g++']," +
+ "['CC.host', '/usr/bin/gcc']," +
+ "['CXX.host', '/usr/bin/g++'],"
+ } else {
+ make_global_settings = ""
+ }
}
if (use_goma) {
« no previous file with comments | « build/config/sysroot.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698