creduce: depend on llvm@5

Closes #25090.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
commitay 2018-03-10 23:19:46 +10:00 committed by FX Coudert
parent db93809a41
commit a6f9b1b3ce

View file

@ -1,7 +1,7 @@
class Creduce < Formula
desc "Reduce a C/C++ program while keeping a property of interest"
homepage "https://embed.cs.utah.edu/creduce/"
revision 2
revision 3
head "https://github.com/csmith-project/creduce.git"
stable do
@ -26,7 +26,7 @@ class Creduce < Formula
depends_on "astyle"
depends_on "delta"
depends_on "llvm"
depends_on "llvm@5"
depends_on :macos => :mavericks
@ -68,7 +68,7 @@ class Creduce < Formula
ENV.prepend_create_path "PERL5LIB", libexec/"lib/perl5"
# Avoid ending up with llvm's Cellar path hard coded.
ENV["CLANG_FORMAT"] = Formula["llvm"].opt_bin/"clang-format"
ENV["CLANG_FORMAT"] = Formula["llvm@5"].opt_bin/"clang-format"
resources.each do |r|
r.stage do
@ -80,7 +80,7 @@ class Creduce < Formula
system "./configure", "--prefix=#{prefix}",
"--disable-dependency-tracking",
"--with-llvm=#{Formula["llvm"].opt_prefix}",
"--with-llvm=#{Formula["llvm@5"].opt_prefix}",
"--bindir=#{libexec}"
system "make"
system "make", "install"