Skip to content

cabal-install local profiling settings do not override global settings #7314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
amigalemming opened this issue Mar 4, 2021 · 2 comments
Open
Labels
cabal-install: cmd/build re: config-file Concerning the cabal configuration file and the `--config-file` option re: options Concerning command-line options type: bug

Comments

@amigalemming
Copy link
Contributor

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.

@amigalemming
Copy link
Contributor Author

Maybe related to the recent #7297.

@amigalemming
Copy link
Contributor Author

The same applies to

documentation: False

@fgaz fgaz added cabal-install: cmd/build re: config-file Concerning the cabal configuration file and the `--config-file` option type: bug re: options Concerning command-line options labels Oct 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cabal-install: cmd/build re: config-file Concerning the cabal configuration file and the `--config-file` option re: options Concerning command-line options type: bug
Projects
None yet
Development

No branches or pull requests

2 participants