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