You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rust: ring build script finds no clang on windows_arm64 under --//cc/toolchains:compiler=msvc #9224
Follow-up from #6588 (part of #4825). With --//cc/toolchains:compiler=msvc on windows_arm64, //cli/cli:dx fails in the ring 0.17.14 build script: cc-rs failed to find tool "clang" (evidence run https://github.com/devhusdk/rules_dx/actions/runs/42127196421). ring's build.rs needs clang (or clang-cl with our patch) for aarch64 Windows assembly (briansmith/ring#2673), and the MSVC toolchain only has cl.exe. The default llvm toolchain builds it fine (CI preflight windows_arm64, run 42363337317 job 128376092757).
Where
MODULE.bazel:1587-1599 (ring crate.annotation with clang_cl_aarch64_windows.patch) and MODULE.bazel:1626-1639 (ring crate.annotation_select for aarch64-pc-windows-msvc).
rust/tools/msvc_paths/BUILD.bazel (pattern for an exec tool passed through build_script_tools).
Fix
In the ring annotation_select for aarch64-pc-windows-msvc, add CC_aarch64_pc_windows_msvc = $(execpath <hermetic LLVM clang-cl>) and add that label to build_script_tools, the same way msvc_lib is passed as AR_*. This is harmless under the default llvm compiler, which already uses clang-cl.
Activity
rust: turn off /WX for ring's aarch64 Windows clang-cl build (part of #…
TrapsterDK commentedon Nov 7, 2026
Evidence for PR #9305 (ring gets the hermetic clang-cl on aarch64-pc-windows-msvc):
--//cc/toolchains:compiler=msvc, build//cli/cli:dx: passed. https://github.com/devhusdk/rules_dx/actions/runs/42375446435//cli/cli:dx_upstreamwith E0460 on pulldown_cmark. That is the main-branch problem fixed by rust: build pulldown-cmark without pipelining (closes #9243) #9299, which this branch predates. https://github.com/devhusdk/rules_dx/actions/runs/42375454647🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hzpb4qWNZKpDCrwUz7
rust: give ring's aarch64 Windows build script the hermetic clang-cl …
rust: turn off /WX for ring's aarch64 Windows clang-cl build (part of #…
rust: repin cargo-bazel-lock.json after rebase (part of #9224)
rust: give ring's aarch64 Windows build script the hermetic clang-cl (c…