only request sky_snapshot if it is actually needed (#8340)
This commit is contained in:
parent
fc9a00fd6c
commit
28a2b99989
@ -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({
|
|||||||
// 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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user