diff options
| author | Jack Nagel | 2013-12-02 01:17:25 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-12-02 01:17:32 -0600 |
| commit | 4443a9f2e195eab66685799750545c994d4f8cd6 (patch) | |
| tree | e11e9878546db83910ad991329cf485f84eb12e7 /Library/Homebrew/cmd/install.rb | |
| parent | ea992b02e57d907e98d7329d482586c1f3366dfd (diff) | |
| download | brew-4443a9f2e195eab66685799750545c994d4f8cd6.tar.bz2 | |
Emit deprecation warning for --use-{gcc,llvm,clang}
Closes Homebrew/homebrew#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 |
