ENV/std: use full paths to gcc versions.
This is consistent with how e.g. `gcc-4.2` is handled. This means e.g. `ghc` can find `gcc-4.8` at runtime. Fixes Homebrew/homebrew#28934.
This commit is contained in:
parent
c92a16e2ce
commit
2fb6d2fdbe
@ -119,8 +119,9 @@ module Stdenv
|
||||
GNU_GCC_VERSIONS.each do |n|
|
||||
define_method(:"gcc-4.#{n}") do
|
||||
gcc = "gcc-4.#{n}"
|
||||
self.cc = gcc
|
||||
self.cxx = gcc.gsub('c', '+')
|
||||
gxx = gcc.gsub('c', '+')
|
||||
self.cc = MacOS.locate(gcc)
|
||||
self.cxx = MacOS.locate(gxx)
|
||||
set_cpu_cflags
|
||||
@compiler = gcc
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user