diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/ENV.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index 9f9579109..b1ff5d9cf 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -90,8 +90,7 @@ module HomebrewEnvExtension @compiler = :gcc 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/) + or (Pathname.new(ENV['CC']).realpath.to_s =~ /llvm/) end alias_method :gcc_4_2, :gcc |
