Skip to content

Commit bcd169b

Browse files
committed
Set -runtime-path in legacy build (bsb), too
1 parent f6d8303 commit bcd169b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cli/rescript-legacy/bsb.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import * as os from "node:os";
77
import * as path from "node:path";
88

99
import { rescript_legacy_exe } from "../common/bins.js";
10+
import { runtimePath } from "../common/runtime.js";
1011
import { WebSocket } from "./minisocket.js";
1112

1213
const cwd = process.cwd();
@@ -49,6 +50,11 @@ function acquireBuild(args, options) {
4950
if (ownerProcess) {
5051
return null;
5152
}
53+
54+
if (!args.includes("-runtime-path")) {
55+
args.push("-runtime-path", runtimePath);
56+
}
57+
5258
try {
5359
ownerProcess = child_process.spawn(rescript_legacy_exe, args, {
5460
stdio: "inherit",

0 commit comments

Comments
 (0)