Skip to content

Commit 920ea53

Browse files
committed
Fix broken ocaml build on macOS
See here: https://discuss.ocaml.org/t/ocaml-4-07-1-fails-to-build-with-apple-xcode-12/6441/19 tldr one of XCode's gcc's warning turned into an error, which made the build configuration go wrong. The solution is either this diff, which silences that error, or use ocaml 4.08's newer `configure` which is apparently more resilient.
1 parent 0867ac8 commit 920ea53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/buildocaml.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function build(config) {
6464
if (config) {
6565
var { make } = require("./config.js");
6666
cp.execSync(
67-
"./configure -flambda -prefix " +
67+
"./configure -cc \"gcc -Wno-implicit-function-declaration\" -flambda -prefix " +
6868
prefix +
6969
` -no-ocamlbuild -no-curses -no-graph -no-pthread -no-debugger && ${make} clean`,
7070
{ cwd: ocamlSrcDir, stdio: [0, 1, 2] }

0 commit comments

Comments
 (0)