Skip to content

Repurpose -g to add debug information #2056

Description

@tibbe

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions