aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-05-21 10:14:26 -0500
committerJack Nagel2014-05-21 10:14:26 -0500
commitb1999de1a6f135c0052c8389e4540fe6423fe0ad (patch)
tree00ad5ac16a36db7ebcd89e5fa1f6aff84a59ce8d /Library/Formula
parent68dc2e3c8ca7ba24d329972cfae7437b81eef01b (diff)
downloadhomebrew-b1999de1a6f135c0052c8389e4540fe6423fe0ad.tar.bz2
gcc: don't use bottles on Xcode-only systems
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gcc.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/gcc.rb b/Library/Formula/gcc.rb
index 68622c82b..761c3fc5a 100644
--- a/Library/Formula/gcc.rb
+++ b/Library/Formula/gcc.rb
@@ -64,6 +64,12 @@ class Gcc < Formula
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
cxxstdlib_check :skip
+ # The bottles are built on systems with the CLT installed, and do not work
+ # out of the box on Xcode-only systems due to an incorrect sysroot.
+ def pour_bottle?
+ MacOS::CLT.installed?
+ end
+
def install
# GCC will suffer build errors if forced to use a particular linker.
ENV.delete "LD"