Skip to content

Commit d6ffda7

Browse files
committed
Support Windows 11 ARM (by using the x86 binaries there) (#6813)
1 parent 9de2ad1 commit d6ffda7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
1313
# 11.1.2-rc.1
1414

15+
#### :rocket: New Feature
16+
17+
- Support Windows 11 ARM (using the x64 binaries in emulation). https://github.com/rescript-lang/rescript-compiler/pull/6813
18+
1519
#### :bug: Bug Fix
1620

1721
- Fix location of let bindings with attributes. https://github.com/rescript-lang/rescript-compiler/pull/6791

scripts/bin_path.js

+5-1
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)