diff options
| author | Jack Nagel | 2013-03-11 22:54:15 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-03-12 13:55:15 -0500 |
| commit | 5ddd40b8449efc82b831ff62151d5012f6e05ac0 (patch) | |
| tree | 8d782dc9569c8fc25b8f5da6f97c9fddd12a444e /Library/Formula/libagg.rb | |
| parent | 18fd4f122d41aca306ea17d86feacbbbf44ad05f (diff) | |
| download | homebrew-5ddd40b8449efc82b831ff62151d5012f6e05ac0.tar.bz2 | |
Switch compilers when no build is specified
Given the current state of OS X compilers, the original fails_with
behavior is becoming less useful, mostly resulting in build failures
each time the compiler is updated. So make the following changes:
When a build is specified, we retain the old behavior: switch compilers
if the available compiler is <= the build, don't switch if it is > the
build.
When no build is specified, unconditionally switch compilers, and don't
output the advice message. This allows us to mark formulae as
perpetually failing, avoiding the need to update formulae each time a
new compiler build is made available.
As a bonus, this makes the logic much easier to reason about.
Closes #18175.
Diffstat (limited to 'Library/Formula/libagg.rb')
| -rw-r--r-- | Library/Formula/libagg.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Library/Formula/libagg.rb b/Library/Formula/libagg.rb index 3a026b1b1..3eb5e771a 100644 --- a/Library/Formula/libagg.rb +++ b/Library/Formula/libagg.rb @@ -12,7 +12,6 @@ class Libagg < Formula depends_on :freetype => :optional fails_with :clang do - build 425 cause <<-EOS.undent AGG tries to return a const reference as a non-const reference, which is rejected by clang 3.1 but accepted by gcc |
