diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c3b995fff..4616b813c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ - 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 - Add `rewatch` to the npm package as an alternative build tool. https://github.com/rescript-lang/rescript-compiler/pull/6762 - 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 +- Support Windows 11 ARM (using the x64 binaries in emulation). https://github.com/rescript-lang/rescript-compiler/pull/6813 #### :boom: Breaking Change diff --git a/scripts/bin_path.js b/scripts/bin_path.js index ae318de61e..ca2e8afa08 100644 --- a/scripts/bin_path.js +++ b/scripts/bin_path.js @@ -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; /** *