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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user