llvm: fix ocaml option

OPAM still suffers from https://github.com/ocaml/opam/issues/3007.
This commit is contained in:
ilovezfs 2017-12-25 13:13:00 -08:00
parent ee54d24bba
commit 566feba7b7

View file

@ -250,7 +250,8 @@ class Llvm < Formula
ENV["OPAMROOT"] = Pathname.pwd/"opamroot"
(Pathname.pwd/"opamroot").mkpath
system "opam", "init", "--no-setup"
system "opam", "install", "ocamlfind", "ctypes"
system "opam", "config", "exec", "--",
"opam", "install", "ocamlfind", "ctypes"
system "opam", "config", "exec", "--",
"cmake", "-G", "Unix Makefiles", buildpath, *(std_cmake_args + args)
else