-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Allow a kernel snapshot to be compiled #47322
Comments
removing area-vm as this support can be provided purely from the dart-cli tool. |
I would also like to see this feature supported. I'm trying to implement incremental compilation in the dcli package for users that need an exe to test with Sudo or remote deployments. This feature would speed up development iterations for users of dcli. |
@nex3 I don't think this will work for your use case as there's no stable ABI between the VM and kernel, so the user invoking The right way to solve this distribution issue is for us to support cross-compilation, but I have no update on the progress on that front. @bsutton we don't currently have support for AOT compilation from incremental kernel files, and such support would likely lead to little to no performance improvements as the global analysis done during the initial compilation would need to be completely invalidated to take into account changes to the program structure. I'm going to close this issue as I don't think this feature is worth adding at this point as it will only work in very limited scenarios. |
It's pretty easy to ensure that users get the same version of the SDK that was used to compile a kernel file. We already ensure that SDK versions are consistent in order to guarantee that the code runs against the same version of Dart it was tested against (different Dart versions have enough breaking changes between them that this is an unfortunate necessity). Other than this one case, the |
Currently, if I try to run
dart compile
with a kernel snapshot as an input, it crashes with a bunch of errors like the following:Since the normal
dart
runner itself can take a kernel snapshot, I'd expectdart compile
to be able to as well. This would be useful for distributing installers that rundart compile exe
on the local user's workstation on a single snapshot file, as a way of avoiding code signing issues and working around the lack of cross-compilation (#28617).The text was updated successfully, but these errors were encountered: