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

Unified Diff: runtime/tools/create_snapshot_bin.py

Issue 850193002: Makes create_snapshot_bin.py pass along a --package_root flag. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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: runtime/tools/create_snapshot_bin.py
===================================================================
--- runtime/tools/create_snapshot_bin.py (revision 42883)
+++ runtime/tools/create_snapshot_bin.py (working copy)
@@ -30,6 +30,9 @@
result.add_option("--script",
action="store", type="string",
help="Dart script for which snapshot is to be generated")
+ result.add_option("--package_root",
+ action="store", type="string",
+ help="Path used to resolve package: imports.")
siva 2015/01/14 21:49:49 The help string doesn't seem to follow the same pa
zra 2015/01/14 21:59:18 Done.
result.add_option("--url_mapping",
default=[],
action="append",
@@ -75,6 +78,10 @@
# Setup arguments to the snapshot generator binary.
script_args = ["--error_on_bad_type", "--error_on_bad_override"]
+ # Pass along the package_root if there is one.
+ if options.package_root:
+ script_args.append(''.join([ "--package_root=", options.package_root]))
+
# First setup the snapshot output filename.
script_args.append(''.join([ "--snapshot=", options.output_bin ]))
« 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