Skip to content

Multi-target build #8156

Closed
Closed

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

Activity

  1. added
    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
    on Apr 24, 2020
  2. alexcrichton commented on Apr 27, 2020

    @alexcrichton
    Member

    Thanks for the report! This is actually a refactoring I've wanted to do for some time now, so I've mustered up the motivation and pushed up #8167 to implement this.

  3. added a commit that references this issue on Apr 29, 2020
  4. ehuss commented on Apr 29, 2020

    @ehuss
    Contributor

    Closing in favor of tracking issue #8176.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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