diff options
| author | Jack Nagel | 2013-12-02 01:17:25 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-12-02 01:17:32 -0600 |
| commit | c505d94f833bc78c92afb55274c7a87bfec86248 (patch) | |
| tree | b0023dd58fc3c7859883e68e8a2db146a7184e2c /Library/Homebrew/cmd/install.rb | |
| parent | de3c7d94bfca0f6f903829a46b6c02427c4b29cf (diff) | |
| download | homebrew-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.rb | 13 |
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 |
