Hackishly fix parallel build failure with in-tree GMP
authorAustin Seipp <austin@well-typed.com>
Tue, 7 Jan 2014 09:52:38 +0000 (03:52 -0600)
committerAustin Seipp <austin@well-typed.com>
Tue, 7 Jan 2014 09:52:38 +0000 (03:52 -0600)
commit8ed8ac58b4a5c8654fccee4436ca62bf7c690474
treee75464cfdb5c0304ced6066846565e2161b165ce
parent8bf9541912c30ffb740d6ab67edcadcfbe4fc80b
Hackishly fix parallel build failure with in-tree GMP

See the comments and #8102. The basic gist of it seems to be that the
build system follows an implied rule from somewhere to directly build a
C file, which doesn't have a dependency on the in-tree gmp.h that we
build. As a result, the C file compilation races against the GMP build,
causing an error.

This is a pretty unsatisfactory hack, but for Windows and OS X machines
where we more often build in-tree GMPs, it's quite important.

Authored-by: Kazu Yamamoto <kazu@iij.ad.jp>
Signed-off-by: Austin Seipp <austin@well-typed.com>
mkGmpDerivedConstants/ghc.mk