Skip to content

rust: ring build script finds no clang on windows_arm64 under --//cc/toolchains:compiler=msvc #9224

Closed

Description

@TrapsterDK

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

Activity

  1. added
    P2Improve and finish existing features
    model:sonnetAgent lane: scoped change with stated design, Sonnet
    on Nov 7, 2026
  2. TrapsterDK commented on Nov 7, 2026

    @TrapsterDK
    CollaboratorAuthor

    Evidence for PR #9305 (ring gets the hermetic clang-cl on aarch64-pc-windows-msvc):

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hzpb4qWNZKpDCrwUz7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Improve and finish existing featuresmodel:sonnetAgent lane: scoped change with stated design, Sonnet

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions