aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/install.rb
diff options
context:
space:
mode:
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