Skip to content

Commit 9f963c3

Browse files
committed
Find per-platform binaries
1 parent 261335b commit 9f963c3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

server/src/utils.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,16 @@ let findPlatformPath = (projectRootPath: p.DocumentUri | null) => {
739739

740740
let platformPath = path.join(rescriptDir, c.platformDir);
741741

742+
// Binaries have been split into optional platform-specific dependencies
743+
// since v12.0.0-alpha.13
744+
if (!fs.existsSync(platformPath)) {
745+
platformPath = path.join(
746+
rescriptDir,
747+
"..",
748+
`@rescript/${process.platform}-${process.arch}/bin`
749+
)
750+
}
751+
742752
// Workaround for darwinarm64 which has no folder yet in ReScript <= 9.1.4
743753
if (
744754
process.platform == "darwin" &&

0 commit comments

Comments
 (0)