diff options
| author | Max Howell | 2011-08-26 14:21:37 +0100 |
|---|---|---|
| committer | Max Howell | 2011-08-26 14:21:37 +0100 |
| commit | 93f03aa278c9260b9dda7bb32206c0edf6b4ebd4 (patch) | |
| tree | 4fbaf04d22c5cdc65b7175ca442d79a71e01b5c9 /Library/Formula/ffmpeg.rb | |
| parent | 03ce188ec57b12780c15204ed01d993dab782a14 (diff) | |
| download | homebrew-93f03aa278c9260b9dda7bb32206c0edf6b4ebd4.tar.bz2 | |
Some more sanity with ENV.compiler
Deprecated use_clang? etc. since the logic was such that multiple states could be set, when in reality only one compiler can be set.
Changed fails_with_llvm handling so if HOMEBREW_USE_LLVM is set then it tries to build even if the formula has fails_with_llvm set. Rationale: mostly they will no longer fail and we need to catch these cases.
Diffstat (limited to 'Library/Formula/ffmpeg.rb')
| -rw-r--r-- | Library/Formula/ffmpeg.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Library/Formula/ffmpeg.rb b/Library/Formula/ffmpeg.rb index aead9a790..2ee2fb89a 100644 --- a/Library/Formula/ffmpeg.rb +++ b/Library/Formula/ffmpeg.rb @@ -38,9 +38,11 @@ class Ffmpeg < Formula if MacOS.lion? args << "--cc=clang" else - args << "--cc=clang" if ENV.use_clang? - args << "--cc=llvm-gcc" if ENV.use_llvm? - args << "--cc=gcc" if ENV.use_gcc? + args << case ENV.compiler + when :clang then "--cc=clang" + when :llvm then "--cc=llvm-gcc" + when :gcc then "--cc=gcc" + end end # For 32-bit compilation under gcc 4.2, see: |
