Use prebuilt Dart snapshot when assembling bundle (#6660)

This is causing issues when integratting Flutter into GN as the
generated depfile refers to snapshot as the target instead of the
bundle. We instead use a separate GN action to generate the
snapshot use the Flutter compiler to only assemble the bundle.
This commit is contained in:
Petr Hosek
2016-11-02 14:37:42 -07:00
committed by Adam Barth
parent 223f416199
commit 93a2d07c63
2 changed files with 3 additions and 15 deletions

View File

@@ -90,7 +90,6 @@ Future<int> build({
depfilePath ??= defaultDepfilePath;
workingDirPath ??= getAssetBuildDirectory();
packagesPath ??= path.absolute(PackageMap.globalPackagesPath);
File snapshotFile;
if (!precompiledSnapshot) {
ensureDirectoryExists(snapshotPath);
@@ -108,10 +107,10 @@ Future<int> build({
printError('Failed to run the Flutter compiler. Exit code: $result');
return result;
}
snapshotFile = new File(snapshotPath);
}
File snapshotFile = new File(snapshotPath);
return assemble(
manifestPath: manifestPath,
snapshotFile: snapshotFile,