From 3f2e4ac1ee86687ac2cd5c78f488f1cbc45f0ae8 Mon Sep 17 00:00:00 2001 From: Rich Healey Date: Tue, 17 Apr 2012 16:59:41 +1000 Subject: 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 --- Library/Formula/chicken.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Library') 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? -- cgit v1.2.3