Repository navigation
Prefer arm64 packages on ARM64 Windows - #14
Merged
Merged
Conversation
The index carries arm64-mswin64_140 packages next to the x64 ones, with tags assigned per platform. An ARM64 host now installs its own platform first and falls back to x64, which runs under emulation, with a warning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A query that matches both an arm64 and an x64 install now picks the arm64 one, as install does through the index, unless it is the exact version of one of them, so `3.4.1` still means 3.4.1 next to an arm64 3.4.12. Landing on x64 gives the same warning. uninstall keeps its old resolution, so such a query is still ambiguous there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An arm64 ruby.exe loads the ARM64 vcruntime140.dll, which an older x64 redistributable does not carry. install and use now check the Runtimes key matching the ruby, and setup on ARM64 requires both keys, without the vcruntime140.dll fallback that the two runtimes share there. The installer stays vc_redist.x64.exe, which provides both runtimes on ARM64. https://learn.microsoft.com/cpp/windows/latest-supported-vc-redist Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
install and use now default to arm64 rubies on ARM64 Windows, where extensions built under the x64 toolchain fail to link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The binary index carries
arm64-mswin64_140builds next to the x64 ones since ruby/actions#159. On ARM64 Windows,rb installandrb usenow pick the arm64 build of a version or tag, and fall back to the x64 build with a warning when there is none. A full package name still picks that build, and x64 machines see no change.rb list --remotegains a platform column. The VC++ runtime check now looks for the ARM64 runtime for arm64 rubies, and on ARM64 relies on the registry rather than the DLL in the system directory, which both runtimes share.rb msvcstill sets up the x64 toolchain only, which the README now notes.Generated with Claude Code