ghc requires std-env

Because it builds a tool (cabal) that uses the same env that built it to build stuff.
This commit is contained in:
Max Howell 2012-09-13 16:49:35 -04:00
parent d1f1d736e8
commit fe295faffe

View File

@ -76,8 +76,8 @@ end
def pre_superenv_hacks f
# fontforge needs 10.7 SDK, wine 32 bit, graphviz has mysteriously missing symbols
# and ruby/python etc. create gem/pip that then won't work
stdenvs = %w{fontforge python python3 ruby ruby-enterprise-edition jruby wine graphviz}
# and ruby/python/ghc etc. create gem/pip that then won't work
stdenvs = %w{fontforge python python3 ruby ruby-enterprise-edition jruby wine graphviz ghc}
ARGV.unshift '--env=std' if (stdenvs.include?(f.name) or
f.recursive_deps.detect{|d| d.name == 'scons' }) and
not ARGV.include? '--env=super'