Skip to content

Commit

Permalink
Support Windows 11 ARM (by using the x86 binaries there) (#6813)
Browse files Browse the repository at this point in the history
  • Loading branch information
cknitt committed Jun 16, 2024
1 parent 9de2ad1 commit d6ffda7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
# 11.1.2-rc.1

#### :rocket: New Feature

- Support Windows 11 ARM (using the x64 binaries in emulation). https://github.com/rescript-lang/rescript-compiler/pull/6813

#### :bug: Bug Fix

- Fix location of let bindings with attributes. https://github.com/rescript-lang/rescript-compiler/pull/6791
Expand Down
6 changes: 5 additions & 1 deletion scripts/bin_path.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ var path = require("path");
* For compatibility reasons, if the architecture is x64, omit it from the bin directory name.
* So we'll have "darwin", "linux" and "win32" for x64 arch,
* but "darwinarm64" and "linuxarm64" for arm64 arch.
* Also, we do not have Windows ARM binaries yet. But the x64 binaries do work on Windows 11 ARM.
* So omit the architecture for Windows, too.
*/
var binDirName =
process.arch === "x64" ? process.platform : process.platform + process.arch;
process.arch === "x64" || process.platform === "win32"
? process.platform
: process.platform + process.arch;

/**
*
Expand Down

0 comments on commit d6ffda7

Please sign in to comment.