Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Cabal should support distcc #1694

spacekitteh opened this Issue Feb 19, 2014 · 2 comments


None yet
3 participants

There should be a configuration option to allow cabal to automatically use distcc to distribute its compilation to multiple computers!

For those who don't know, distcc is a tool which distributes source code over multiple computers in order to compile in parallel. It's amazing when it works properly! http://en.wikipedia.org/wiki/distcc

See here for an example: https://stackoverflow.com/questions/10323419/is-there-a-distcc-like-tool-for-ghc


dagit commented Feb 19, 2014

This is a really interesting feature request. I wouldn't have guessed that you can tell distcc to just use ghc. I wonder what caveats come up as you add support for cabal sandboxes?

Before getting too far into cabal support, I think we should convince some folks to try it out and report back with their findings. I expect that the first step in either case is figuring out how to do it manually. Has anyone already done that and written the steps/configuration down?

In the command line, you can tell distcc the compiler to use. I.e., after setting up hosts according to the man page, you just run "distcc ghc -o objectname -c source"

@23Skidoo 23Skidoo added this to the _|_ milestone Feb 25, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment