Skip to content

Commit

Permalink
Fix broken ocaml build on macOS
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chenglou committed Sep 19, 2020
1 parent 0867ac8 commit 920ea53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/buildocaml.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function build(config) {
if (config) {
var { make } = require("./config.js");
cp.execSync(
"./configure -flambda -prefix " +
"./configure -cc \"gcc -Wno-implicit-function-declaration\" -flambda -prefix " +
prefix +
` -no-ocamlbuild -no-curses -no-graph -no-pthread -no-debugger && ${make} clean`,
{ cwd: ocamlSrcDir, stdio: [0, 1, 2] }
Expand Down

0 comments on commit 920ea53

Please sign in to comment.