From 93f03aa278c9260b9dda7bb32206c0edf6b4ebd4 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 26 Aug 2011 14:21:37 +0100 Subject: 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.--- Library/Formula/ffmpeg.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Library/Formula/ffmpeg.rb') 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: -- cgit v1.2.3