ENV: fix llvm-gcc regexp
Fixes: Homebrew/homebrew#8890. Closes Homebrew/homebrew#8893. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
This commit is contained in:
parent
6f83e20f49
commit
6c86d358a3
@ -135,7 +135,7 @@ module HomebrewEnvExtension
|
||||
|
||||
raise "GCC could not be found" if args[:force] and not File.exist? ENV['CC'] \
|
||||
or (File.symlink? ENV['CC'] \
|
||||
and File.readlink(ENV['CC']) =~ 'llvm')
|
||||
and File.readlink(ENV['CC']) =~ /llvm/)
|
||||
end
|
||||
alias_method :gcc_4_2, :gcc
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user