Skip to content

Multi-target build #8156

@Mygod

Description

@Mygod

Describe the problem you are trying to solve

When building rust code for an Android app, it is common to build for multiple targets, e.g. (ARM, x86) ⊗ (32 bits, 64 bits). While cargo build is already parallel in some sense, LTO (or last step compilation in general) is single threaded and can take a long time to run. It makes sense to use up the CPU resources for building other targets.

Describe the solution you'd like

Multi-target build with --target=armv7-linux-androideabi --target=aarch64-linux-android ....

Notes

See also plugin: https://github.com/mozilla/rust-android-gradle

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions