Repository navigation
Support Windows on ARM through the x64 package - #8776
Conversation
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>
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
rescript
@rescript/belt
@rescript/darwin-arm64
@rescript/darwin-x64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/runtime
@rescript/win32-x64
commit: |
|
Developer playground preview: https://rescript-lang.github.io/rescript/dev-playground/?version=pr-8776 |
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>
|
@codex review |
There was a problem hiding this comment.
💡 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".
Signed-off-by: Christoph Knittel <ck@cca.io> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@codex review |
Codecov Report✅ All modified and coverable lines are covered by tests. 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:
|
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
* 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>
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>
* 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>
ReScript can't be installed on Windows on ARM today. The launcher looks for a
win32-arm64package, 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.cjsresolves@rescript/win32-x64when Node runs natively on Windows ARM64.@rescript/win32-x64listsarm64in itscpufield, 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.cjswithprocess.platform/process.archset towin32/arm64: it resolves thewin32-x64package. 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