From c246ee22c19e5c97d3c6b311877dc0aca342bae1 Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Sat, 3 Dec 2011 14:56:37 -0800 Subject: LLVM: Disable OCaml bindings by default The build attempts, and fails, to compile the OCaml bindings by default if OCaml is installed. Fixes #8947. --- Library/Formula/llvm.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Library/Formula/llvm.rb') diff --git a/Library/Formula/llvm.rb b/Library/Formula/llvm.rb index 10ed1007f..6d8ed6809 100644 --- a/Library/Formula/llvm.rb +++ b/Library/Formula/llvm.rb @@ -56,8 +56,15 @@ class Llvm < Formula ENV['REQUIRES_RTTI'] = '1' if build_rtti? - configure_options = ["--prefix=#{prefix}", - "--enable-optimized"] + configure_options = [ + "--prefix=#{prefix}", + "--enable-optimized", + # As of LLVM 3.0, the only bindings offered are for OCaml and attempting + # to build these when Homebrew's OCaml is installed results in errors. + # + # See issue #8947 for details. + "--enable-bindings=none" + ] if build_all_targets? configure_options << "--enable-targets=all" -- cgit v1.2.3