building with make -j2 ?

Simon Marlow simonmar@microsoft.com
Tue, 30 Apr 2002 16:10:44 +0100


> > "Simon Marlow" <simonmar@microsoft.com> writes:
> >=20
> > > The snapshot source distribution has now been updated to=20
> include the
> > > file mk/package.mk which was missing the first time around.
> >=20
> > Thanks.
> >=20
> > Btw, does ghc build with "make -j2"?  I tried building the
> > snapshot just now with it but got a make error at some
> > point.  I forget to save the build log, but I can easily
> > fire up another build if you want to see it.
> >=20
>=20
> It *mostly* worked for me a month or so ago.  I did a single-processor
> make until I saw it had started on ghc/compiler, and then hit ^C and
> did make -j2 in ghc/compiler.  This worked fine, and then I continued
> the make with one processor for the rest.  Presumably the same trick
> would work in hslibs/.  I think there's some setup that depends on
> implicit ordering, but once it gets going in a directory it's all
> fine.

I've fixed a couple of things in the Makefile setup, so 'make -j' should
be better, at least under fptools/ghc.  I'm not sure it's totally
robust, but please feel free to give it a whirl.

Cheers,
	Simon