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

Unified Diff: tools/utils.py

Issue 192543002: - Enable automatic cross-builds across ARM and MIPS architectures. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 | « tools/gyp/configurations_make.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/utils.py
===================================================================
--- tools/utils.py (revision 33476)
+++ tools/utils.py (working copy)
@@ -220,7 +220,15 @@
if conf_os == 'android':
return '%s%s%s' % (GetBuildMode(mode), conf_os.title(), arch.upper())
else:
- return '%s%s' % (GetBuildMode(mode), arch.upper())
+ # Ask for a cross build if the host and target architectures don't match.
+ host_arch = ARCH_GUESS
+ target_arch = arch
+ if target_arch == 'x64':
+ target_arch = 'ia32'
+ cross_build = ''
+ if host_arch != target_arch:
+ cross_build = 'X'
+ return '%s%s%s' % (GetBuildMode(mode), cross_build, arch.upper())
ARCH_GUESS = GuessArchitecture()
BASE_DIR = os.path.abspath(os.path.join(os.curdir, '..'))
« no previous file with comments | « tools/gyp/configurations_make.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698