mxcl/homebrew — Issue #8790: `--use-gcc` should throw an error if GCC doesn't exist
Author: mistydemeo
Created: 2011-11-25 18:07:19+00:00
State: open

`--use-gcc` will silently continue with the default compiler if regular GCC doesn't exist, which is confusing to users. `--use-gcc` should throw an error and cause the build to fail if the requested compiler doesn't exist.

Homebrew/extend/ENV.rb L136 contains a check for the requested CC existing, but only executes it `if args[:force]`, which is currently only passed via `fails_with_llvm`.