Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve precompilation #4005

Merged
merged 7 commits into from
Sep 1, 2023
Merged

Conversation

sigurdm
Copy link
Contributor

@sigurdm sigurdm commented Sep 1, 2023

This ensures that the "incremental" file that is created when precompilation fails, will be removed when precompilation succeeds.

Fixes: #4003

Also simplifies the path of the incremental file to be $output.incremental. This simplifies the directory handling a bit.

Fixes: #3896

Added a test that caching takes effect (such that second compilation is much faster). This test is somewhat fragile - but I'm not sure we have a better way to test this.

lib/src/dart.dart Outdated Show resolved Hide resolved
lib/src/dart.dart Outdated Show resolved Hide resolved
lib/src/dart.dart Outdated Show resolved Hide resolved
test/precompilation_test.dart Show resolved Hide resolved
sigurdm and others added 6 commits September 1, 2023 13:36
Co-authored-by: Jonas Finnemann Jensen <jopsen@gmail.com>
Co-authored-by: Jonas Finnemann Jensen <jopsen@gmail.com>
Co-authored-by: Jonas Finnemann Jensen <jopsen@gmail.com>
@sigurdm sigurdm merged commit be6868b into dart-lang:master Sep 1, 2023
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants