haskell / haskell/cabal

--disable-profiling does not disable profiling

Open
#8,677 0 comments 0 reactions 0 assignees View on GitHub
cabal-install: cmd/build re: profiling type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

The `--help` text says that `--disable-profiling` disables both executable and library profiling. But it doesn't seem to; for me, `cabal v2-build --disable-library-profiling --disable-executable-profiling` and `cabal v2-build --disable-profiling` produce different results -- the former disables profiling while the latter doesn't.

This may be related to #7314, but the symptoms I describe here are not quite the same as there: this is not a discrepancy between command line and config file, but between two command lines. Nevertheless, I do have `library-profiling: True` and `executable-profiling: True` in my `~/.cabal/config`, and that may be relevant.

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.