From a18f853679fd7755b280f99bd8cbb86ef9e9ca54 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 10 Jul 2012 21:01:16 -0500 Subject: Add MacOS::Xcode.provides_gcc? Signed-off-by: Jack Nagel --- Library/Formula/gmp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/gmp.rb b/Library/Formula/gmp.rb index e09489d6b..d710591a2 100644 --- a/Library/Formula/gmp.rb +++ b/Library/Formula/gmp.rb @@ -19,7 +19,7 @@ class Gmp < Formula # Also force use of 4.2 on 10.6 in case a user has changed the default # Do not force if xcode > 4.2 since it does not have /usr/bin/gcc-4.2 as default # FIXME convert this to appropriate fails_with annotations - ENV.gcc unless MacOS::Xcode.version >= '4.2' + ENV.gcc if MacOS::Xcode.provides_gcc? args = %W[--prefix=#{prefix} --enable-cxx] -- cgit v1.2.3