Skip to content

build(deps): replace toolchains_llvm with hermetic-llvm 0.8.19 - #218

Merged
aaylward merged 1 commit into
mainfrom
switch-hermetic-llvm
Sep 12, 2026
Merged

build(deps): replace toolchains_llvm with hermetic-llvm 0.8.19#218
aaylward merged 1 commit into
mainfrom
switch-hermetic-llvm

Conversation

@aaylward

@aaylward aaylward commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

Switches the --config=llvm cell to the hermetic-llvm module (BCR name llvm, 0.8.19). Zero-sysroot, so libc++, compiler-rt and the glibc/kernel headers come from Bazel rather than the runner's /usr/include. Still dev-only and selected via --extra_toolchains.

Registers all toolchains instead of a subset — the toolchain extension sets root_module_direct_deps unconditionally, which Bazel rejects for a dev-only usage.

🤖 Generated with Claude Code

https://claude.ai/code/session_01N7LJEcX1h9jYfE6xt9Mm6G

The --config=llvm cell moves to the hermetic-llvm module (BCR name
"llvm"). It is zero-sysroot, so clang gets libc++, compiler-rt, CRT
files and the glibc/kernel headers as Bazel targets instead of reading
the runner's /usr/include.

Same dev-only shape: --extra_toolchains selects @llvm//toolchain:all, so
ordinary builds keep the autodetected toolchain. Registers the full set
rather than a subset via @llvm//extensions:toolchain.bzl, which declares
root_module_direct_deps unconditionally and so cannot be used dev-only.

Drops -Wno-unused-command-line-argument, which silenced toolchains_llvm's
builtin-libc++ flag noise under --config=werror. The boost.context
-std=c++17 per-file flag stays; its headers are still parsed here.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N7LJEcX1h9jYfE6xt9Mm6G
@aaylward
aaylward merged commit 61dab2b into main Sep 12, 2026
30 of 31 checks passed
@aaylward
aaylward deleted the switch-hermetic-llvm branch September 12, 2026 21:06
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