Documentation does not reflect that GHC no longer accepts -split-objs
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
https://cabal.readthedocs.io/en/latest/setup-commands.html#cmdoption-runhaskell-Setup.hs-configure-enable-split-objs says
> `--enable-split-objs`
>
> Use the GHC `-split-objs` feature when building the library. This reduces the final size of the executables that use the library by allowing them to link with only the bits that they use rather than the entire library. The downside is that building the library takes longer and uses considerably more memory.
Modern GHCs no longer recognise `-split-objs`, one can check it with `ghc-9.2 --show-options | grep show-objs`. The option has disappeared between GHC [8.8](https://downloads.haskell.org/~ghc/8.8.1/docs/html/users_guide/flags.html) and [8.10](https://downloads.haskell.org/~ghc/8.10.1/docs/html/users_guide/flags.html).
I didn't check: it might be not only a documentation issue, but also a Cabal bug, if it tries to pass `-split-objs` to GHCs, which does not support it.
Contributor guide
Assessment
This issue has not been assessed yet.