haskell / haskell/cabal

cabal-install local profiling settings do not override global settings

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

Description

The following problem exists in `cabal-2.4` to `cabal-3.4`.

In `$HOME/.cabal/config` I have
~~~~
library-profiling: True
~~~~

When compiling with `cabal v2-build` I cannot disable profiling locally, neither using command-line option `--disable-library-profiling` nor in `cabal.project.local` with `library-profiling: False`. It's just ignored and `cabal` continues building the profiled version. It does not harm, but increases build time considerably and sometimes I just want a quick build without profiling. Ok, there is an instance where it harms: When I want to build `ghc-vis` it says that it cannot be build with profiling and I should disable it using `--disable-library-profiling`, although that's precisely what I did.

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.