Skip to content

Assign linking Rustc actions to a rust_link execution group - #4382

Open
digit-google wants to merge 1 commit into
bazelbuild:mainfrom
digit-google:add-rust-link-exec-group
Open

digit-google wants to merge 1 commit into
bazelbuild:mainfrom
digit-google:add-rust-link-exec-group

Conversation

@digit-google

Copy link
Copy Markdown

Define a "rust_link" exec_group on Rust rules and assign linking Rustc actions (crate types other than rlib/lib when "link" is in emit) to it, while keeping rlib compilation and RustcMetadata actions in the default execution group.

This allows execution platforms and targets to specify "rust_link.*" exec_properties (similar to rules_cc's "cpp_link.*") to route heavy linking / LTO actions to dedicated remote execution worker pools.

This implements feature request #4381

Define a "rust_link" exec_group on Rust rules and assign linking
Rustc actions (crate types other than rlib/lib when "link" is in emit)
to it, while keeping rlib compilation and RustcMetadata actions in
the default execution group.

This allows execution platforms and targets to specify "rust_link.*"
exec_properties (similar to rules_cc's "cpp_link.*") to route heavy
linking / LTO actions to dedicated remote execution worker pools.

This implements feature request bazelbuild#4381

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants