gcc: combine conditionals

master
Jack Nagel 2014-05-24 09:47:34 -05:00
parent 6e3a9a55a8
commit 5f49eaf48f
1 changed files with 9 additions and 8 deletions

View File

@ -49,17 +49,18 @@ class Gcc < Formula
depends_on "isl"
depends_on "ecj" if build.with?("java") || build.with?("all-languages")
# The as that comes with Tiger isn't capable of dealing with the
# PPC asm that comes in libitm
depends_on "cctools" => :build if MacOS.version < :leopard
if MacOS.version < :leopard
# The as that comes with Tiger isn't capable of dealing with the
# PPC asm that comes in libitm
depends_on "cctools" => :build
# GCC 4.8.1 incorrectly determines that _Unwind_GetIPInfo is available on
# Tiger, resulting in a failed build
# Fixed upstream: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58710
patch :DATA
end
fails_with :gcc_4_0
# GCC 4.8.1 incorrectly determines that _Unwind_GetIPInfo is available on
# Tiger, resulting in a failed build
# Fixed upstream: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58710
def patches; DATA; end if MacOS.version < :leopard
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
cxxstdlib_check :skip