6

Are there any tools like distcc for GHC? Or other more primitive tricks for doing distributed compilation?

I realize GHC is extremely version sensitive. Is this impractical since GHC doesn't yet support cross-compilation?

dave4420
  • 46,404
  • 6
  • 118
  • 152
Jeff Burdges
  • 4,204
  • 23
  • 46

1 Answers1

6

In the past I've configured distcc to invoke GHC as its compiler -- that works nicely in heterogeneous cluster environments (over ssh). I'm not aware of any other mechanism.

Don Stewart
  • 137,316
  • 36
  • 365
  • 468
  • I'll play with distcc then, thanks. I'd assume one needs ghc versions with compatible `.hi` files, but maybe they don't change quite as quickly as advertised. – Jeff Burdges Apr 25 '12 at 20:52
  • You should try to have the same GHC on all machines. .hi files are somewhat portable, but I wouldn't guarantee it. – Don Stewart Apr 25 '12 at 20:58
  • I know this is old, but it would be great if you could ellaborate a bit. A short demo/guide would be helpful. – Ivan Perez Jun 17 '18 at 13:49