Skip to content

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

Merged
dzbarsky merged 1 commit into
hermeticbuild:mainfrom
finn-ball:agent/narrow-cpp-toolchain-inputs-hermetic
Aug 18, 2026
Merged

Narrow C++ toolchain inputs for Rust compilation#43
dzbarsky merged 1 commit into
hermeticbuild:mainfrom
finn-ball:agent/narrow-cpp-toolchain-inputs-hermetic

Conversation

@finn-ball

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

Copy link
Copy Markdown

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.

This keeps non-linking actions narrow without removing the inputs needed by binaries, static and shared libraries, or proc macros.

Upstream draft: bazelbuild#4235

@finn-ball
finn-ball marked this pull request as ready for review August 18, 2026 13:52
@dzbarsky
dzbarsky merged commit b03f1b0 into hermeticbuild:main Aug 18, 2026
3 checks passed
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