Skip to content

Commit 9b24c51

Browse files
committed
[flutter_tools] Simplify ExtensionKernelCompiler to workspace-local cache
Simplifies `ExtensionKernelCompiler` to cache compiled extension `.dill` snapshots in `<workspace>/.dart_tool/flutter_tools/extensions/<package>/extension.dill` alongside `extension.dill.d` and `extension.dill.stamp`, dropping the `$DART_DATA_HOME` shared cache tier, `pubspec.lock` and `package_graph.json` parsing, and the `package:dart_data_home` dependency. Records the whole-second compilation start timestamp (`compiledAt`) before hashing `.dart_tool/package_config.json` or invoking `dart compile kernel`, commits `.d`, `.dill`, and `.stamp` in order with an explicit `buildToken` (`CompiledExtensionKernel`), and invalidates whenever any depfile source input has a modification timestamp at or after `compiledAt` so edits saved mid-compile invalidate cached snapshots. Part of flutter#190755
1 parent ed3b44a commit 9b24c51

5 files changed

Lines changed: 868 additions & 2204 deletions

File tree

0 commit comments

Comments
 (0)