Chromium Code Reviews| 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 ])) |