aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/install.rb
diff options
context:
space:
mode:
authorJack Nagel2013-12-02 01:17:25 -0600
committerJack Nagel2013-12-02 01:17:32 -0600
commitc505d94f833bc78c92afb55274c7a87bfec86248 (patch)
treeb0023dd58fc3c7859883e68e8a2db146a7184e2c /Library/Homebrew/cmd/install.rb
parentde3c7d94bfca0f6f903829a46b6c02427c4b29cf (diff)
downloadhomebrew-c505d94f833bc78c92afb55274c7a87bfec86248.tar.bz2
Emit deprecation warning for --use-{gcc,llvm,clang}
Closes #24864.
Diffstat (limited to 'Library/Homebrew/cmd/install.rb')
-rw-r--r--Library/Homebrew/cmd/install.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index c6ae22294..c1d5f4739 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -6,6 +6,19 @@ module Homebrew extend self
def install
raise FormulaUnspecifiedError if ARGV.named.empty?
+ {
+ 'gcc' => 'gcc-4.2',
+ 'llvm' => 'llvm-gcc',
+ 'clang' => 'clang'
+ }.each_pair do |old, new|
+ opt = "--use-#{old}"
+ if ARGV.include? opt then opoo <<-EOS.undent
+ #{opt.inspect} is deprecated and will be removed in a future version.
+ Please use "--cc=#{new}" instead.
+ EOS
+ end
+ end
+
if ARGV.include? '--head'
raise "Specify `--HEAD` in uppercase to build from trunk."
end