Is there a way to compile packages in parallel when using cabal install
similar to GNU make's -jN
flag?
Yes, from version 1.16, cabal does support this using the -j
option to install, like so:
cabal install -j mypackage
No. This has been an open issue for some time. There was an effort to make ghc --make
build the needed modules in parallel, but evidently that ran into issues. Since then doing this at the cabal level has been all the discussion I've heard but has not became reality yet.
See this duplicate question for some links and what is still the state of the art.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With