mxcl/homebrew — Issue #9369: Opinions: compiler search paths?
Author: mistydemeo
Created: 2012-01-01 21:02:29+00:00
State: open

`extend/ENV.rb` currently only searches in /usr/bin for the standard gcc/llvm/clang compilers. This is a problem for users with custom compilers - for instance, @Sharpie's apple-gcc formula in homebrew-alt, or the llvm formula with clang. `brew-install` will just not use them.

We should definitely have more search paths. Do we want to whitelist a few (e.g. /usr/bin, prefix/bin, xcode_prefix/usr/bin), or select whatever's in the path via `which`?

Of course, the latter may cause problems with Xcode 4.3, re: #9179.