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

Unified Diff: tools/utils.py

Issue 1043263002: Adds armv5 build and test target. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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/testing/dart/test_options.dart ('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 44804)
+++ tools/utils.py (working copy)
@@ -48,7 +48,9 @@
# Try to guess the host architecture.
def GuessArchitecture():
os_id = platform.machine()
- if os_id.startswith('arm'):
+ if os_id.startswith('armv5'):
+ return 'armv5'
+ elif os_id.startswith('arm'):
return 'arm'
elif os_id.startswith('aarch64'):
return 'arm64'
@@ -220,6 +222,7 @@
'ia32': 'ia32',
'x64': 'ia32',
'arm': 'arm',
+ 'armv5': 'arm',
'arm64': 'arm',
'mips': 'mips',
'simarm': 'ia32',
@@ -553,7 +556,11 @@
else:
arch = GuessArchitecture()
system = GuessOS()
- if arch == 'arm':
+ if arch == 'armv5':
+ # TODO(zra): This binary does not exist, yet. Check one in once we have
+ # sufficient stability.
+ return os.path.join(dart_binary_prefix, system, 'dart-armv5')
+ elif arch == 'arm':
return os.path.join(dart_binary_prefix, system, 'dart-arm')
elif arch == 'arm64':
return os.path.join(dart_binary_prefix, system, 'dart-arm64')
« no previous file with comments | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698