ghc: fix parallel make

Closes Homebrew/homebrew#22110.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
This commit is contained in:
Darin Morrison 2013-08-24 13:01:59 -06:00 committed by Misty De Meo
parent b3c211dd5e
commit d8c99c46aa

View file

@ -60,8 +60,7 @@ class Ghc < Formula
args << "--with-gcc=#{ENV.cc}" if ENV.compiler == :gcc
system "./configure", *args
ENV.j1 # Fixes an intermittent race condition
system 'make install'
system 'make -j1 install' # -j1 fixes an intermittent race condition
ENV.prepend 'PATH', subprefix/'bin', ':'
end
@ -96,8 +95,7 @@ class Ghc < Formula
end
end
system 'make'
ENV.j1 # Fixes an intermittent race condition
system 'make install'
system 'make -j1 install' # -j1 fixes an intermittent race condition
end
end