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

Unified Diff: tools/utils.py

Issue 23572028: Added support for using a checked-in binary of dart for ARM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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/bin/linux/dart-arm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/utils.py
diff --git a/tools/utils.py b/tools/utils.py
index 54a53a8646504049fb59603dde3a5b8412a4bb33..a81c7e6749093c47d25acbe5246a4c9bab33ed11 100644
--- a/tools/utils.py
+++ b/tools/utils.py
@@ -437,7 +437,12 @@ def DartBinary():
if IsWindows():
return os.path.join(dart_binary_prefix, 'windows', 'dart.exe')
else:
- return os.path.join(dart_binary_prefix, GuessOS(), 'dart')
+ arch = GuessArchitecture()
+ system = GuessOS()
+ if arch == 'arm':
+ return os.path.join(dart_binary_prefix, system, 'dart-arm')
+ else:
+ return os.path.join(dart_binary_prefix, system, 'dart')
def DartSdkBinary():
« no previous file with comments | « tools/testing/bin/linux/dart-arm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698