diff options
| author | Max Howell | 2011-09-01 09:39:54 +0100 |
|---|---|---|
| committer | Max Howell | 2011-09-01 09:39:54 +0100 |
| commit | 3449a9ffcb8d7ffb21cc29a22899b7d4f8bb898f (patch) | |
| tree | 1ccd803b9ca52d4850cd52e9d4fec6ebcb9d56d4 /Library | |
| parent | 54ff63335b14dcf7c9b7f56172669a9eadff9140 (diff) | |
| download | homebrew-3449a9ffcb8d7ffb21cc29a22899b7d4f8bb898f.tar.bz2 | |
Restore previous fails_with_llvm? behaviour
I've not been very careful lately, I apologise.
Fixes #7338.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index d4654495c..6a7a9336a 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -226,10 +226,10 @@ class Formula def fails_with_llvm? llvm = self.class.fails_with_llvm_reason if llvm - if llvm.build - MacOS.llvm_build_version <= llvm.build.to_i + if llvm.build and MacOS.llvm_build_version > llvm.build.to_i + false else - true + llvm end end end @@ -317,12 +317,17 @@ class Formula def handle_llvm_failure llvm case ENV.compiler when :llvm, :clang - opoo "LLVM was requested, but this formula is reported to not work with LLVM:" + opoo "Building with LLVM, but this formula is reported to not work with LLVM:" puts puts llvm.reason puts - puts "We are continuing anyway so if the build succeeds, please let us know so we" - puts "can update the formula. If it doesn't work you can: brew install --use-gcc" + puts <<-EOS.undent + We are continuing anyway so if the build succeeds, please open a ticket with + the following information: #{MacOS.llvm_build_version}-#{MACOS_VERSION}. So + that we can update the formula accordingly. Thanks! + EOS + puts + puts "If it doesn't work you can: brew install --use-gcc" puts else ENV.gcc if MacOS.default_cc =~ /llvm/ |
