Skip to content

fix(windows): the toolchain script installs clang-cl and survives rustup's stderr - #4732

Merged
datlechin merged 1 commit into
mainfrom
lane/g1-toolchain
Nov 29, 2026
Merged

datlechin merged 1 commit into
mainfrom
lane/g1-toolchain

Conversation

@datlechin

Copy link
Copy Markdown
Member

Summary

  • windows/scripts/install-toolchain.ps1 adds Microsoft.VisualStudio.Component.VC.Llvm.Clang: aws-lc-sys 0.45 compiles its C with clang-cl for aarch64-pc-windows-msvc and finds it in the Build Tools itself.
  • rustup target add runs through the script's Invoke-Installer (Start-Process with an exit-code check): Windows PowerShell stopped on rustup's stderr once the script's output was redirected, so the machine PATH line never ran.
  • Windows ADR 0001's Consequences name the clang-cl component.

Test plan

  • tp-win (Windows 11 Arm64, Windows PowerShell 5.1): with the Build Tools' clang component installed and no LLVM folder on PATH, aws-lc-sys 0.45 found clang-cl itself and the core built for aarch64-pc-windows-msvc (the app publish of the G1 branch).
  • tp-win: install-toolchain.ps1 -Only rust *> log ran to the end with this change: rustup.exe exit 0, both targets installed, C:\rust\cargo\bin on the machine PATH. Before it, the redirected run stopped at rustup target add and never set PATH (Mac-Windows E2E, 2026-11-28).
  • -Only git with output redirected also ran through (Git 2.56.0.4, exit 0).

@datlechin
datlechin merged commit ac210fa into main Nov 29, 2026
2 checks passed
@datlechin
datlechin deleted the lane/g1-toolchain branch November 30, 2026 04:38
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