haskell / haskell/cabal

Support caching based on --PROG-options

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

Description

Currently changing --ghc-options leads to recompilation of the affected packages.
Even if these have been compiled with the same flags before.

In other words the cached packages are overwritten by the ones with the new flags.

It's likely not a good idea cache these by default as it can easily lead to very large caches.
But it would be incredibly helpful as optional feature for things like benchmarks comparing different GHC flags. Currently I use different store dirs just to avoid triggering the recompilation when rerunning benchmarks.

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.