Skip to content

Allow a kernel snapshot to be compiled #47322

Closed
@nex3

Description

@nex3

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.customer-dart-sasstype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions