Commit 28a2b999 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

only request sky_snapshot if it is actually needed (#8340)

parent fc9a00fd
...@@ -88,7 +88,6 @@ Future<Null> build({ ...@@ -88,7 +88,6 @@ Future<Null> build({
bool includeRobotoFonts: true, bool includeRobotoFonts: true,
bool reportLicensedPackages: false bool reportLicensedPackages: false
}) async { }) async {
snapshotterPath ??= artifacts.getArtifactPath(Artifact.skySnapshot);
outputPath ??= defaultFlxOutputPath; outputPath ??= defaultFlxOutputPath;
kernelPath ??= defaultKernelPath; kernelPath ??= defaultKernelPath;
snapshotPath ??= defaultSnapshotPath; snapshotPath ??= defaultSnapshotPath;
...@@ -111,7 +110,7 @@ Future<Null> build({ ...@@ -111,7 +110,7 @@ Future<Null> build({
// In a precompiled snapshot, the instruction buffer contains script // In a precompiled snapshot, the instruction buffer contains script
// content equivalents // content equivalents
int result = await createSnapshot( int result = await createSnapshot(
snapshotterPath: snapshotterPath, snapshotterPath: snapshotterPath ?? artifacts.getArtifactPath(Artifact.skySnapshot),
mainPath: mainPath, mainPath: mainPath,
snapshotPath: snapshotPath, snapshotPath: snapshotPath,
depfilePath: depfilePath, depfilePath: depfilePath,
......
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