haskell / haskell/cabal

Repurpose -g to add debug information

Open
#2,056 1 comment 0 reactions 1 assignee Claimed by @zlonast View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.