Skip to content

Commit f107b4d

Browse files
committed
tweak changes to buildocaml.js to make esy patch obvious
1 parent 5ae38c4 commit f107b4d

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

scripts/buildocaml.js

+13-14
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,20 @@ exports.getVersionPrefix = getVersionPrefix;
5656
function build(config) {
5757
ensureOCamlExistsSync();
5858

59-
var prefix =
60-
process.env.ESY === "true"
61-
? process.env.cur__install
62-
: path.normalize(
63-
path.join(__dirname, "..", "native", getVersionPrefix())
64-
);
65-
if (config && process.env.ESY !== "true") {
66-
cp.execSync(
67-
"./configure -prefix " +
68-
prefix +
69-
" -no-ocamlbuild -no-curses -no-graph -no-pthread -no-debugger && make clean",
70-
{ cwd: ocamlSrcDir, stdio: [0, 1, 2] }
71-
);
72-
}
7359
if (process.env.ESY !== "true") {
60+
var prefix = path.normalize(
61+
path.join(__dirname, "..", "native", getVersionPrefix())
62+
);
63+
64+
if (config) {
65+
cp.execSync(
66+
"./configure -prefix " +
67+
prefix +
68+
" -no-ocamlbuild -no-curses -no-graph -no-pthread -no-debugger && make clean",
69+
{ cwd: ocamlSrcDir, stdio: [0, 1, 2] }
70+
);
71+
}
72+
7473
cp.execSync("make -j9 world.opt && make install ", {
7574
cwd: ocamlSrcDir,
7675
stdio: [0, 1, 2]

0 commit comments

Comments
 (0)