
9 Apr
2009
9 Apr
'09
11:30 a.m.
barsoap:
Peter Verswyvelen
wrote: Is it possible to use all CPU cores when compiling with GHC and/or Cabal?
Nope. Last thing I heard is that file-parallel compilation is low priority as not much would be gained anyway due to excessive cross-package stuff that's done and much stricter dependencies than say C (which you can compile in about any order you like). I guess if such a thing happens, it'd be most likely in the form of strategically placed `par`'s inside of compiler stages.
Not with cabal, with GHC, yes: assuming you have enough modules. Use ghc -M to dump a makefile, and then make -j20 (or whatever you have) -- Don