Skip to content

Narrow C++ toolchain inputs for Rust compilation - #4235

Open
finn-ball wants to merge 1 commit into
bazelbuild:mainfrom
finn-ball:agent/narrow-cpp-toolchain-inputs
Open

Narrow C++ toolchain inputs for Rust compilation#4235
finn-ball wants to merge 1 commit into
bazelbuild:mainfrom
finn-ball:agent/narrow-cpp-toolchain-inputs

Conversation

@finn-ball

@finn-ball finn-ball commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • keep the Rust toolchain's all_files limited to the Rust sysroot
  • add C++ linker and runtime files only to Rust actions that perform linking

Motivation

Every Rust compilation currently inherits the complete C++ toolchain file set, including compiler headers and unrelated SDK libraries. Linking actions already declare their linker and runtime inputs separately, so carrying the full C++ toolchain through every action unnecessarily expands action inputs.

@finn-ball
finn-ball marked this pull request as ready for review August 18, 2026 13:16
@krasimirgg
krasimirgg self-requested a review August 18, 2026 13:21
@krasimirgg krasimirgg added the awaiting-response Maintainers have responded to the pull-request or thread and now await contributor responses. label Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-response Maintainers have responded to the pull-request or thread and now await contributor responses.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants