Skip to content

Package dart2native in the SDK as part of the GN build #42230

@zanderso

Description

@zanderso

Today, a product mode dart2native is packaged in the Dart SDK alongside other binaries built in release mode. This is accomplished by spinning up two separate GN builds with different configurations, and copying files into the right places after the fact.

Instead, this could be simplified by creating the product mode binaries as part of one release build of the SDK following the example of e.g. the gen_snapshot_product target:

https://github.com/dart-lang/sdk/blob/master/runtime/bin/BUILD.gn#L239

(There is probably some additional work for the snapshots that dart2native and dartaotruntime use, but I'm confident that this can also be supported entirely in the GN build.)

@mkustermann @a-siva @mit-mit

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions