Skip to content

Support Windows on ARM through the x64 package - #8776

Merged
cknitt merged 5 commits into
masterfrom
windows-arm64-x64-package
Oct 11, 2026
Merged

cknitt merged 5 commits into
masterfrom
windows-arm64-x64-package

Conversation

@cknitt

@cknitt cknitt commented Oct 10, 2026

Copy link
Copy Markdown
Member

ReScript can't be installed on Windows on ARM today. The launcher looks for a win32-arm64 package, which doesn't exist, and fails with "Platform win32-arm64 is not supported!".

Windows runs x64 programs on ARM64 through its built-in x64 emulation, so the existing x64 binaries work there. This PR uses them:

  • cli/common/bins.cjs resolves @rescript/win32-x64 when Node runs natively on Windows ARM64.
  • @rescript/win32-x64 lists arm64 in its cpu field, so npm and yarn install it on ARM64 Windows instead of skipping it.

A native ARM64 build can replace this later.

Checked by loading bins.cjs with process.platform/process.arch set to win32/arm64: it resolves the win32-x64 package. The Windows validation reported in #8653 ran the x64 package this way on a Windows 11 ARM64 VM. I haven't run it on Windows on ARM myself.

🤖 Generated with Claude Code

cknitt and others added 2 commits October 10, 2026 10:44
Windows runs the x64 binaries through its x64 emulation, so ARM64 Node now
resolves and installs @rescript/win32-x64.

Signed-off-by: Christoph Knittel <ck@cca.io>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Christoph Knittel <ck@cca.io>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cknitt
cknitt marked this pull request as ready for review October 10, 2026 13:26
@cknitt

cknitt commented Oct 10, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T16:17:49.916550Z 36da563 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1a4fce71cb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread cli/common/bins.cjs Resolved
Comment thread cli/common/bins.cjs Resolved
@pkg-pr-new

pkg-pr-new Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript@8776

@rescript/belt

npm i https://pkg.pr.new/@rescript/belt@8776

@rescript/darwin-arm64

npm i https://pkg.pr.new/@rescript/darwin-arm64@8776

@rescript/darwin-x64

npm i https://pkg.pr.new/@rescript/darwin-x64@8776

@rescript/linux-arm64

npm i https://pkg.pr.new/@rescript/linux-arm64@8776

@rescript/linux-x64

npm i https://pkg.pr.new/@rescript/linux-x64@8776

@rescript/runtime

npm i https://pkg.pr.new/@rescript/runtime@8776

@rescript/win32-x64

npm i https://pkg.pr.new/@rescript/win32-x64@8776

commit: 556bd22

@github-actions

Copy link
Copy Markdown

Windows 10 on ARM cannot emulate x64, so it keeps the unsupported-platform
error. The target mapping moves to platform.cjs and gets a test.

Signed-off-by: Christoph Knittel <ck@cca.io>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cknitt

cknitt commented Oct 10, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bcf3c41b92

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread cli/common/bins.cjs Resolved
Signed-off-by: Christoph Knittel <ck@cca.io>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cknitt

cknitt commented Oct 10, 2026

Copy link
Copy Markdown
Member Author

@codex review

@codecov

codecov Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.58%. Comparing base (1ad9f8b) to head (556bd22).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8776   +/-   ##
=======================================
  Coverage   80.58%   80.58%           
=======================================
  Files         447      447           
  Lines       61681    61681           
=======================================
  Hits        49704    49704           
  Misses      11977    11977           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 36da563295

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@cknitt
cknitt requested a review from cristianoc October 10, 2026 16:51
@cknitt
cknitt enabled auto-merge (squash) October 11, 2026 19:30
@cknitt
cknitt merged commit f30bea4 into master Oct 11, 2026
24 checks passed
@cknitt
cknitt deleted the windows-arm64-x64-package branch October 11, 2026 19:43
@cknitt cknitt mentioned this pull request Oct 15, 2026
aspeddro pushed a commit to aspeddro/rescript-compiler that referenced this pull request Oct 31, 2026
* Support Windows on ARM through the x64 package

Windows runs the x64 binaries through its x64 emulation, so ARM64 Node now
resolves and installs @rescript/win32-x64.

Signed-off-by: Christoph Knittel <ck@cca.io>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Link the Windows on ARM CHANGELOG entry

Signed-off-by: Christoph Knittel <ck@cca.io>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Only use the x64 package on Windows 11 on ARM

Windows 10 on ARM cannot emulate x64, so it keeps the unsupported-platform
error. The target mapping moves to platform.cjs and gets a test.

Signed-off-by: Christoph Knittel <ck@cca.io>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Add platform.cjs to the artifact list

Signed-off-by: Christoph Knittel <ck@cca.io>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Signed-off-by: Christoph Knittel <ck@cca.io>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Pedro Castro <aspeddro@gmail.com>
cknitt added a commit that referenced this pull request Nov 5, 2026
Installing on Windows on ARM worked in v11 through the x64 binaries and
broke with the platform packages of v12, so #8776 fixes a regression.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gLgT1DyDYCdt75qo9F
Signed-off-by: Christoph Knittel <ck@cca.io>
cknitt added a commit that referenced this pull request Nov 5, 2026
* Prepare for 13.0.0-alpha.7 release

Collect the changelog fragments into the 13.0.0-alpha.7 section with `yarn changelog:release`.

Signed-off-by: Christoph Knittel <ck@cca.io>

* Clean up the 13.0.0-alpha.7 changelog

Merge entries that fix or refine a change from this same release into
that change, drop entries readers can't notice (#8718, #8843, #8867,
#9138) and the contributor process entries (commit records, changelog
fragments), combine internal entries per topic, prefix Rust-only build
system entries with `rescript-rust`, and sort each section by PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gLgT1DyDYCdt75qo9F
Signed-off-by: Christoph Knittel <ck@cca.io>

* Shorten the 13.0.0-alpha.7 changelog entries

Cut each entry to one short sentence that says what changed, keeping
migration hints for breaking changes; the linked PRs hold the details.
Merge the two fixes for generalizing records with mutable fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gLgT1DyDYCdt75qo9F
Signed-off-by: Christoph Knittel <ck@cca.io>

* Describe the 13.0.0-alpha.7 changelog entries in user terms

Rewrite entries that named compiler internals, such as array-shaped
records or AST dependencies, as the symptom a user sees or the code
they write, with an example where the wording alone was vague.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gLgT1DyDYCdt75qo9F
Signed-off-by: Christoph Knittel <ck@cca.io>

* Add highlights to the 13.0.0-alpha.7 changelog

Summarize the release above the usual sections: the new build system
and compile speed, new language features, untagged variants for
JavaScript APIs, stdlib additions, React Server Components, the v13
removals and the correctness fixes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gLgT1DyDYCdt75qo9F
Signed-off-by: Christoph Knittel <ck@cca.io>

* Polish the 13.0.0-alpha.7 changelog after a second review

Restore the representation change of moving `@unboxed` to the type,
describe forwarding-function and create-interface fixes in user terms,
spell out JavaScript and file extensions consistently, and drop the
unexplained null folding note of #8950.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gLgT1DyDYCdt75qo9F
Signed-off-by: Christoph Knittel <ck@cca.io>

* Revise the 13.0.0-alpha.7 highlights after review

Use plain wording instead of hype, drop `debugger()` and the typed
array change, which are not highlights, and the catch-all fixes item,
add the platform changes and the signature mismatch errors, and title
the removals "Upgrading from v12".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gLgT1DyDYCdt75qo9F
Signed-off-by: Christoph Knittel <ck@cca.io>

* Restructure the 13.0.0-alpha.7 highlights

Give Temporal a Standard library item like the others, move macOS
Intel back to the upgrade notes, drop Windows on ARM, which is a small
feature, and list the upgrade notes last.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gLgT1DyDYCdt75qo9F
Signed-off-by: Christoph Knittel <ck@cca.io>

* List the Windows on ARM fix as a bug fix

Installing on Windows on ARM worked in v11 through the x64 binaries and
broke with the platform packages of v12, so #8776 fixes a regression.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gLgT1DyDYCdt75qo9F
Signed-off-by: Christoph Knittel <ck@cca.io>

---------

Signed-off-by: Christoph Knittel <ck@cca.io>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants