Skip to content

Commit dbbe10e

Browse files
authored
Support Windows 11 ARM (by using the x86 binaries there) (#6813)
1 parent 1461496 commit dbbe10e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- Allow `@directive` on functions for emitting function level directive code (`let serverAction = @directive("'use server'") (~name) => {...}`). https://github.com/rescript-lang/rescript-compiler/pull/6756
1818
- Add `rewatch` to the npm package as an alternative build tool. https://github.com/rescript-lang/rescript-compiler/pull/6762
1919
- Throws an instance of JavaScript's `new Error()` and adds the extension payload for `cause` option. https://github.com/rescript-lang/rescript-compiler/pull/6611
20+
- Support Windows 11 ARM (using the x64 binaries in emulation). https://github.com/rescript-lang/rescript-compiler/pull/6813
2021

2122
#### :boom: Breaking Change
2223

scripts/bin_path.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ var path = require("path");
88
* For compatibility reasons, if the architecture is x64, omit it from the bin directory name.
99
* So we'll have "darwin", "linux" and "win32" for x64 arch,
1010
* but "darwinarm64" and "linuxarm64" for arm64 arch.
11+
* Also, we do not have Windows ARM binaries yet. But the x64 binaries do work on Windows 11 ARM.
12+
* So omit the architecture for Windows, too.
1113
*/
1214
var binDirName =
13-
process.arch === "x64" ? process.platform : process.platform + process.arch;
15+
process.arch === "x64" || process.platform === "win32"
16+
? process.platform
17+
: process.platform + process.arch;
1418

1519
/**
1620
*

0 commit comments

Comments
 (0)