Commit 574b2829 authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Update the sky_snapshot command line args to match the latest engine (#5273)

parent b504fd42
......@@ -29,22 +29,21 @@ const String _kSnapshotKey = 'snapshot_blob.bin';
Future<int> createSnapshot({
String mainPath,
String snapshotPath,
String depfilePath,
String buildOutputPath
String depfilePath
}) {
assert(mainPath != null);
assert(snapshotPath != null);
final List<String> args = <String>[
tools.getHostToolPath(HostTool.SkySnapshot),
mainPath,
'--packages=${path.absolute(PackageMap.globalPackagesPath)}',
'--snapshot=$snapshotPath'
];
if (depfilePath != null)
if (depfilePath != null) {
args.add('--depfile=$depfilePath');
if (buildOutputPath != null)
args.add('--build-output=$buildOutputPath');
args.add('--build-output=$snapshotPath');
}
args.add(mainPath);
return runCommandAndStreamOutput(args);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment