Skip to content

feat: add aarch64-pc-windows-msvc host support - #601

Merged
SergioGasquez merged 2 commits into
esp-rs:mainfrom
SergioGasquez:feat/windows-arm64
Oct 27, 2026
Merged

SergioGasquez merged 2 commits into
esp-rs:mainfrom
SergioGasquez:feat/windows-arm64

Conversation

@SergioGasquez

Copy link
Copy Markdown
Member

Adds aarch64-pc-windows-msvc as a supported host, to consume the Windows ARM64 Xtensa Rust build added in esp-rs/rust-build#333.

  • HostTriple::Aarch64PcWindowsMsvc, accepted by --default-host and detected automatically on ARM64 Windows.
  • Xtensa Rust: downloads rust-<ver>-aarch64-pc-windows-msvc.zip.
  • GCC: uses the native aarch64-w64-mingw32 crosstool-NG builds.
  • LLVM: Espressif's llvm-project has no ARM64 Windows build yet, so this uses the x86_64-w64-mingw32 one, which runs under Windows' x64 emulation.
  • CD builds and publishes espup-aarch64-pc-windows-msvc(.exe|.zip) on windows-11-arm. cargo-binstall resolves it through the existing pkg-url.
  • CI runs the cargo checks on windows-11-arm.

Caveats

  • No rust-build release ships the ARM64 Windows asset yet (v1.99.0.0 only has x86_64-pc-windows-msvc). Until one does, installs on ARM64 Windows fail at download. They already fail today with UnsupportedHostTriple, and -d x86_64-pc-windows-msvc still works as before. Merge this after ci: add aarch64-pc-windows-msvc build rust-build#333 has published a release.
  • The x86_64 libclang.dll can't be loaded by a native ARM64 process, so bindgen (e.g. esp-idf-sys) running under the ARM64 toolchain won't be able to use it. A native ARM64 Windows build in espressif/llvm-project would fix this.

Testing

  • cargo fmt, cargo clippy --all-targets --all-features -- -D warnings, and cargo test --all-features pass on macOS aarch64.
  • Not yet tested on ARM64 Windows hardware. The new windows-11-arm CI job covers build/test.

@SergioGasquez

Copy link
Copy Markdown
Member Author

Would implement #469

@SergioGasquez
SergioGasquez merged commit d2058e5 into esp-rs:main Oct 27, 2026
22 checks passed
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