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

Unified Diff: runtime/tools/create_snapshot_bin.py

Issue 2044673002: Add --packages option to gen_snapshot in order to accept package map files (see https://github.com/… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: address-code-review Created 4 years, 6 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 | « runtime/bin/gen_snapshot.cc ('k') | 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
diff --git a/runtime/tools/create_snapshot_bin.py b/runtime/tools/create_snapshot_bin.py
index 78213cf304c600ecaa6c83ee1fc134b7a22f90a8..65e56ded00c4a23e8c24d8a135d7bc58c4df4c89 100755
--- a/runtime/tools/create_snapshot_bin.py
+++ b/runtime/tools/create_snapshot_bin.py
@@ -45,6 +45,9 @@ def BuildOptions():
result.add_option("--package_root",
action="store", type="string",
help="path used to resolve package: imports.")
+ result.add_option("--packages",
+ action="store", type="string",
+ help="package config file used to reasolve package: imports.")
result.add_option("--url_mapping",
default=[],
action="append",
@@ -112,6 +115,10 @@ def Main():
if options.package_root:
script_args.append(''.join([ "--package_root=", options.package_root]))
+ # Pass along the packages if there is one.
+ if options.packages:
+ script_args.append(''.join([ "--packages=", options.packages]))
+
# First setup the vm isolate and regular isolate snapshot output filename.
script_args.append(''.join([ "--vm_isolate_snapshot=",
options.vm_output_bin ]))
« no previous file with comments | « runtime/bin/gen_snapshot.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698