Skip to content

Commit

Permalink
Revert "Lazy cache 4 (flutter#29785)" (flutter#29985)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahwilliams authored Mar 26, 2019
1 parent f652f01 commit 164dae3
Show file tree
Hide file tree
Showing 12 changed files with 190 additions and 363 deletions.
3 changes: 2 additions & 1 deletion packages/flutter_tools/lib/src/base/build.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class AOTSnapshotter {
if (fs.file('pubspec.yaml').existsSync()) {
flutterProject = await FlutterProject.current();
}
final FlutterEngine engine = FlutterEngine(cache);
if (!_isValidAotPlatform(platform, buildMode)) {
printError('${getNameForTargetPlatform(platform)} does not support AOT compilation.');
return 1;
Expand Down Expand Up @@ -186,7 +187,7 @@ class AOTSnapshotter {
'entryPoint': mainPath,
'sharedLib': buildSharedLibrary.toString(),
'extraGenSnapshotOptions': extraGenSnapshotOptions.join(' '),
'engineHash': Cache.instance.engineRevision,
'engineHash': engine.version,
'buildersUsed': '${flutterProject != null ? flutterProject.hasBuilders : false}',
},
depfilePaths: <String>[],
Expand Down
Loading

0 comments on commit 164dae3

Please sign in to comment.