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

Unified Diff: tools/build.py

Issue 16143002: Support for overriding the target toolchain when cross compiling (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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/build.py
diff --git a/tools/build.py b/tools/build.py
index 71b9247d591bcb89330c7836ac69abab0e2c600b..ead10d96871ae88d7052b842c4c71d504a1fea7d 100755
--- a/tools/build.py
+++ b/tools/build.py
@@ -120,6 +120,11 @@ def SetTools(arch, toolchainprefix):
toolsOverride = None
if arch == 'arm' and toolchainprefix == None:
toolchainprefix = DEFAULT_ARM_CROSS_COMPILER_PATH + "/bin/arm-linux-gnueabi"
+ # If the 'TARGET_TOOLCHAIN_PREFIX' environment variable is set, we use it
+ # instead. (We use it currently on our buildbots to override the default
+ # toolchain).
+ if 'TARGET_TOOLCHAIN_PREFIX' in os.environ:
+ toolchainprefix = os.environ['TARGET_TOOLCHAIN_PREFIX']
if toolchainprefix:
toolsOverride = {
"CC.target" : toolchainprefix + "-gcc",
« 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