Some platforms (e.g. ARM) don't have a threaded RTS, which makes it impossible
to build cabal-install without editing the source by hand (see #1129). This
patch makes life a bit easier for people using these platforms.
Alternatively, we could add a configure check instead of a flag, but that would
make building cabal-install harder on Windows.
I can merge this myself, but I'm wondering whether others agree that not adding a configure script is the right solution. @dcoutts, what do you think?
I think the simplest hack is to use:
Obviously it'd be more future proof to be able to base this on whether or not the particular ghc in question supports the threaded rts or not, but that's more of a general Cabal feature request. This will do for now I think.
Do not link with threaded RTS on ARM.
GHC on ARM doesn't have a threaded RTS, which makes it impossible to build
cabal-install without editing the source by hand (see #1129). This patch makes
cabal-install compile out of the box on ARM.