Skip to content

Fix build on Windows arm64 - #36

Open
jeroen wants to merge 1 commit into
ixpantia:mainfrom
jeroen:windows-arm64
Open

jeroen wants to merge 1 commit into
ixpantia:mainfrom
jeroen:windows-arm64

Conversation

@jeroen

@jeroen jeroen commented Nov 13, 2026 •

Copy link
Copy Markdown

The package currently fails to build on Windows arm64 (r-universe log) for two reasons:

  1. extendr-ffi 0.8.0 panics in its build script on any Windows architecture other than x86/x86_64. Support for aarch64 was added in extendr 0.8.2.
  2. Makevars.win.in derives the Rust target from $(WIN), which is empty on arm64, so cargo was invoked with --target=-pc-windows-gnu.

Changes:

  • Bump extendr-api to 0.8.2 (semver-compatible; only the extendr crates change in Cargo.lock).
  • Select the Windows target in tools/config.R via a new @WINDOWS_TARGET@ placeholder, following the current rextendr template: aarch64-pc-windows-gnullvm on arm64, otherwise x86_64-pc-windows-gnu (or i686-pc-windows-gnu).
  • Add aarch64-pc-windows-gnullvm to the vendor-filter platforms and regenerate vendor.tar.xz with cargo vendor-filterer.

@andyquinterom

Update extendr to 0.8.2, which supports aarch64 Windows, and select the
Rust target in tools/config.R (aarch64-pc-windows-gnullvm on arm64) rather
than deriving it from $(WIN), which is empty on arm64.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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