haskell / haskell/cabal

`cabal build --enable-profiling` should use a separate build directory

Open
#6,873 6 comments 1 reaction 0 assignees View on GitHub
cabal-install: v2-build system re: profiling type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

It is quite common to alternate normal and profiling builds while developing. Currently, cabal uses the same build directory for both, which results in a lot of rebuilding. The current workaround is to manually specify separate build directories for each type of build, which works but is noisy.

This seems easy to fix: use some other build directory by default if `--enable-profiling` is present (e.g., `dist-profiling`). Users can still use `--builddir` to pick a different one, if they'd like.

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.