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

Unified Diff: dart/frog/scripts/bootstrap/frog_wrapper.py

Issue 9430046: Explicitly use node.js in the cases where it is needed. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 10 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
Index: dart/frog/scripts/bootstrap/frog_wrapper.py
diff --git a/dart/frog/scripts/bootstrap/frog_wrapper.py b/dart/frog/scripts/bootstrap/frog_wrapper.py
index 7bfe37b5ea8faa5ad32fc1157bfed73afd5db204..e9f02f237ff2c4073735f89d979bc5ebc487e45f 100644
--- a/dart/frog/scripts/bootstrap/frog_wrapper.py
+++ b/dart/frog/scripts/bootstrap/frog_wrapper.py
@@ -17,7 +17,14 @@ def main(args):
print "Could not find frog"
return 1
- frog_args = [ 'frog.py', '--vm=' + VM ]
+ frog_args = [ 'frog.py', '--vm=%s' % VM]
+ js_cmd_flag = '--js_cmd=%s --crankshaft' % D8
+ for arg in args:
+ if arg.startswith('--js_cmd'):
+ js_cmd_flag = arg
+ if js_cmd_flag in args:
+ args.remove(js_cmd_flag)
+ frog_args.append(js_cmd_flag)
if VM_FLAGS:
frog_args.append(VM_FLAGS)
frog_args.append('--')
« no previous file with comments | « dart/frog/scripts/bootstrap/frog_bootstrap_wrapper.py ('k') | dart/frog/scripts/bootstrap/frogsh_bootstrap_wrapper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698