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.
In GCC, LLVM, etc
-gis 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-gflag convenient we need a flag that will prevent cabal from stripping generated binaries and have it pass-gto GHC.I suggest we reuse the mostly (completely?) unused
-gflag for that purpose. We'll have to add a warning saying that it's meaning has changed and point previous users to--ghc.