-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[tools] Allow precompiling gen_kernel and compile_platform"
This reverts commit 5cda2a8. Reason for revert: broke Flutter build. Original change's description: > [tools] Allow precompiling gen_kernel and compile_platform > > When iterating on core library changes or changes in the AOT compiler > many seconds are wasted waiting on gen_kernel/compile_platform to > parse Dart code. This happens because we are running these tools > from sources on prebuilt Dart SDK. > > This CL allows SDK developer to opt-in into AOT compiling these > tools by adding `precompile_tools=true` to their DART_GN_ARGS. > > AOT compilation is performed using prebuilt SDK - so these > executables do not need to be recompiled if core libraries or > VM changes reducing iteration cycles. > > pkg/vm/tool/precompiler2 is tweaked to detect when DART_GN_ARGS > contains `precompile_tools=true` and use precompiled > gen_kernel.exe instead of running it from source. > > Using precompiled compile_platform takes vm_platform_strong.dill > build from 20 seconds to 3 seconds. > > Using precompiled gen_kernel takes small benchmark build from > ~10 seconds to 2 seconds. > > TEST=manually tested > > Change-Id: Ieec6ad4e1081023d140eb744f0a3cd0c754414ca > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/367940 > Commit-Queue: Slava Egorov <[email protected]> > Reviewed-by: Martin Kustermann <[email protected]> Change-Id: Id3e4eb44d33516f31c165d9a1e55911e8d356e7f No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/367960 Commit-Queue: Slava Egorov <[email protected]> Bot-Commit: Rubber Stamper <[email protected]> Reviewed-by: Alexander Markov <[email protected]>
- Loading branch information
Showing
8 changed files
with
62 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.