aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorRich Healey2012-04-17 16:59:41 +1000
committerJack Nagel2012-04-19 16:22:34 -0500
commit3f2e4ac1ee86687ac2cd5c78f488f1cbc45f0ae8 (patch)
tree96e637e5baed13ba1e1e0743444041d0da92e9ff /Library/Formula
parent516161c29cf9ce30da7267d0b0bd15db8184b478 (diff)
downloadhomebrew-3f2e4ac1ee86687ac2cd5c78f488f1cbc45f0ae8.tar.bz2
chicken: workaround for compilation with Clang/LLVM
Building with DEBUGBUILD is sufficient; be verbose about this so the user is aware and has the chance to abort and possibly build with GCC if it is available. Closes #11696. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/chicken.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/Library/Formula/chicken.rb b/Library/Formula/chicken.rb
index 303571e70..65561eb3b 100644
--- a/Library/Formula/chicken.rb
+++ b/Library/Formula/chicken.rb
@@ -6,11 +6,13 @@ class Chicken < Formula
homepage 'http://www.call-cc.org/'
head 'git://code.call-cc.org/chicken-core'
- fails_with :llvm do
- cause "Compilation hangs; see http://lists.gnu.org/archive/html/chicken-users/2010-12/msg00158.html"
- end
-
def install
+ # see http://lists.gnu.org/archive/html/chicken-users/2010-12/msg00159.html
+ if [:clang, :llvm].include? ENV.compiler
+ ENV['DEBUGBUILD'] = "1"
+ opoo "Building with DEBUGBUILD to avoid Clang/LLVM issues"
+ end
+
ENV.deparallelize
args = ["PREFIX=#{prefix}", "PLATFORM=macosx", "C_COMPILER=#{ENV.cc}"] # Chicken uses a non-standard var. for this
args << "ARCH=x86-64" if MacOS.prefer_64_bit?