Add --packages flag when compiling dart2js snapshot

BUG=
R=paulberry@google.com

Review URL: https://codereview.chromium.org/2368073004 .
This commit is contained in:
William Hesse 2016-09-26 18:48:26 +02:00
parent 9941b665bf
commit 1f97819b25

View file

@ -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) {