Repurpose -g to add debug information
Open
old-milestone: cabal-install 2.0
type: enhancement
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
In GCC, LLVM, etc `-g` is used to enable debug info. With https://phabricator.haskell.org/D169 we'll soon have such info in GHC-compiled executables as well. To make using GHC's new `-g` flag convenient we need a flag that will prevent cabal from stripping generated binaries and have it pass `-g` to GHC.
I suggest we reuse the mostly (completely?) unused `-g` flag for that purpose. We'll have to add a warning saying that it's meaning has changed and point previous users to `--ghc`.
Contributor guide
Assessment
This issue has not been assessed yet.