mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
Add --packages flag when compiling dart2js snapshot
BUG= R=paulberry@google.com Review URL: https://codereview.chromium.org/2368073004 .
This commit is contained in:
parent
9941b665bf
commit
1f97819b25
|
@ -63,7 +63,8 @@ void writeSnapshotFile(var path, var content) {
|
|||
|
||||
Future createSnapshot(var dart_file) {
|
||||
return Process.run(Platform.executable,
|
||||
["--snapshot=$dart_file.snapshot",
|
||||
["--packages=../../.packages",
|
||||
"--snapshot=$dart_file.snapshot",
|
||||
dart_file])
|
||||
.then((result) {
|
||||
if (result.exitCode != 0) {
|
||||
|
|
Loading…
Reference in a new issue