Closed
Description
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:
test.dart.snapshot:1:1: Error: Unable to decode bytes as UTF-8.
����E2102c6ce7a��������!A��
^
Since the normal dart
runner itself can take a kernel snapshot, I'd expect dart compile
to be able to as well. This would be useful for distributing installers that run dart 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).