Skip to content

Commit 479f9b5

Browse files
committed
compcert 3.15
1 parent a000fbc commit 479f9b5

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

Formula/compcert.rb

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,35 @@
11
class Compcert < Formula
22
desc "Formally verified C compiler"
33
homepage "https://compcert.org/"
4-
url "https://github.com/AbsInt/CompCert/archive/refs/tags/v3.9.tar.gz"
5-
sha256 "6a56b4e4c2b6e776eba43a1a08047c9efd6874244bd2d8c48ccb6ccd1117aefb"
6-
license "LGPL-2.1-only"
4+
url "https://github.com/AbsInt/CompCert/archive/refs/tags/v3.15.tar.gz"
5+
sha256 "6baae8f69bdbf0192d02fae911207cbde73bb1ff6b9790b1e745be0bd9b2342a"
6+
license :cannot_represent
77

88
bottle do
99
root_url "https://github.com/paperchalice/homebrew-private/releases/download/compcert-3.9"
1010
sha256 cellar: :any_skip_relocation, big_sur: "e11fd93a2863bef7bccf64894d73b479d86e561e9de10da33360bdbeff147917"
1111
end
1212

1313
depends_on "coq" => :build
14-
depends_on "menhir" => :build
14+
# TODO: depends_on "menhir" => :build
1515
depends_on "ocaml" => :build
16+
depends_on "opam" => :build
1617

1718
def install
19+
opamroot = buildpath/".opam"
20+
ENV["OPAMROOT"] = opamroot
21+
ENV["OPAMYES"] = "1"
22+
system "opam", "init", "--no-setup", "--disable-sandboxing"
23+
system "opam", "install", "menhir"
24+
ENV.append_path "PATH", opamroot/"default/bin"
25+
1826
# We pass -ignore-coq-version, otherwise every new version of coq
1927
# breaks the strict version check.
2028
configure_args = %W[
2129
-prefix #{prefix}
2230
#{Hardware::CPU.arch}-macosx
2331
-ignore-coq-version
32+
-ignore-ocaml-version
2433
-clightgen
2534
]
2635
system "./configure", *configure_args

0 commit comments

Comments
 (0)