aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-05-24 09:47:34 -0500
committerJack Nagel2014-05-24 09:47:34 -0500
commit37146c4c60e5edb53dea7e2755a0f8e7045397ed (patch)
treecb66af344689d0b853f2e2cff05e6300d3e0cf0d /Library
parent42a90116a9866e6d9a0e4ea88bf952b7aedeba98 (diff)
downloadhomebrew-37146c4c60e5edb53dea7e2755a0f8e7045397ed.tar.bz2
gcc: combine conditionals
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gcc.rb17
1 files changed, 9 insertions, 8 deletions
diff --git a/Library/Formula/gcc.rb b/Library/Formula/gcc.rb
index 9c7c7c0b6..77614c26b 100644
--- a/Library/Formula/gcc.rb
+++ b/Library/Formula/gcc.rb
@@ -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