Skip to content

Add more sysroot flags that require prefixing#4101

Open
keith wants to merge 1 commit into
bazelbuild:mainfrom
keith:ks/add-more-sysroot-flags-that-requires-prefixing
Open

Add more sysroot flags that require prefixing#4101
keith wants to merge 1 commit into
bazelbuild:mainfrom
keith:ks/add-more-sysroot-flags-that-requires-prefixing

Conversation

@keith

@keith keith commented Jun 25, 2026

Copy link
Copy Markdown
Member

No description provided.

@keith keith changed the title Add more sysroot flags that requires prefixing Add more sysroot flags that require prefixing Jun 25, 2026
dan-stowell added a commit to dan-stowell/bazel-museum that referenced this pull request Jun 25, 2026
rules_rust: backport bazelbuild/rules_rust#4101 (= hermeticbuild/rules_rust#30)
onto rules_rust 0.68.1, unforked, via a single_version_override patch (new
RULES_RUST_SYSROOT_FIX overlay, applied to cxx alongside HERMETIC_LLVM). cargo
build scripts rewrite execroot-relative sysroot paths to ${pwd}/... so they work
under remote execution, but 0.68.1 only handled `--sysroot=<path>` — not the
`-isysroot <path>` (two args) that hermetic-llvm now emits on macOS after our
#642 backport. So the museum's own hermetic-llvm fix is what surfaced this; the
patch makes Rust+macOS builds work without waiting for the PRs to land. Patch
verified to apply (dry-run + inner module resolution).

Shared repository cache: the macOS SDK (and the hermetic LLVM tarballs) were
re-downloaded per goal because each goal had its own repo cache, which trips
Apple's CDN rate limit (429/403) and intermittently fails darwin builds. Point
every goal at one content-addressed repo cache under the museum base instead:
safe (hash-keyed) and exactly its purpose — fetch once, reuse everywhere. The
per-goal output_user_root, fresh source, scrubbed env and --batch are unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.

1 participant