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'; ...@@ -29,22 +29,21 @@ const String _kSnapshotKey = 'snapshot_blob.bin';
Future<int> createSnapshot({ Future<int> createSnapshot({
String mainPath, String mainPath,
String snapshotPath, String snapshotPath,
String depfilePath, String depfilePath
String buildOutputPath
}) { }) {
assert(mainPath != null); assert(mainPath != null);
assert(snapshotPath != null); assert(snapshotPath != null);
final List<String> args = <String>[ final List<String> args = <String>[
tools.getHostToolPath(HostTool.SkySnapshot), tools.getHostToolPath(HostTool.SkySnapshot),
mainPath,
'--packages=${path.absolute(PackageMap.globalPackagesPath)}', '--packages=${path.absolute(PackageMap.globalPackagesPath)}',
'--snapshot=$snapshotPath' '--snapshot=$snapshotPath'
]; ];
if (depfilePath != null) if (depfilePath != null) {
args.add('--depfile=$depfilePath'); args.add('--depfile=$depfilePath');
if (buildOutputPath != null) args.add('--build-output=$snapshotPath');
args.add('--build-output=$buildOutputPath'); }
args.add(mainPath);
return runCommandAndStreamOutput(args); 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