Repository navigation
cc: rules_dx clang-cl toolchains set LIB on MSVC link actions (part of #11416) - #12667
Merged
Merged
Conversation
TrapsterDK
marked this pull request as ready for review
November 14, 2026 03:01
…#11416) Declares clang-cl cc_toolchains for MSVC targets in //cc/private/toolchain/clang_cl that reuse the @llvm cc_toolchain macro, args and binaries, with a clang-cl cc_tool without the placeholder LIB env and LIB cc_args from the hermetic Windows SDK, MSVC CRT and libc++ lib dirs. Registered ahead of @llvm//toolchain:all so consumers get the same link environment. Drops the root-only msvc_link_lib_env llvm patch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
…init on Windows (part of #11416) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
…name (part of #11416) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD
TrapsterDK
force-pushed
the
issue-11416-clang-cl-lib
branch
from
November 14, 2026 03:02
4c54c32 to
ff67bb1
Compare
Contributor
|
This pull request touched paths in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #11416. This is option 2 from the owner decision: rules_dx declares its own clang-cl toolchains so that consumers get the hermetic
LIBon MSVC link actions.Changes
//cc/private/toolchain/clang_cl. It declares one clang-clcc_toolchainper LLVM exec platform for MSVC targets, using@llvm//toolchain:cc_toolchain.bzl, the@llvmargs, the resource directory macros and the minimal-distribution binaries.clang-clcc_toolhas noLIBtool env.LIBcomes from link-actioncc_argsthat join the Windows SDK, MSVC CRT and libc++ lib dirs with the same per-runtime-stage and CRT selection the patch used.@llvmtool map.@llvm//toolchain:all.patches/llvm/msvc_link_lib_env.patchand its README row.Evidence
bazel build //cc/private/toolchain/clang_cl:allpasses.c_msvc_fixture_test: run 43548456220 passed.//tools/testing/hermetic:cpp_rust: run 43548747693 failed before linking. Thefetch_coverageprobe failed analysing@@rules_dx+//gazelle/julia(no such attribute 'package_name' in 'julia_binary' rule). This PR does not touch that file.Not run
tools/dx check --affectedtimed out after 20 minutes locally.Remaining
LIBplaceholder.//tools/testing/hermetic:cpp_rustonce thegazelle/juliapackage_nameanalysis error is fixed on main.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD