commercialhaskell / commercialhaskell/stack
Profiling build defaults
Open
component: build
type: enhancement
- Dominant language
- Haskell
- Stars
- 4.1k
- Forks
- 850
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 4
Description
@bitemyapp's Makefiles are a treasure trove of build tips. [Here's a trick for profiling builds](https://github.com/fpco/badgers/blob/master/Makefile#L9-L13):
```
stack build --profile --work-dir .stack-work-profiling
```
This tremendously improves build caching, at the expense of disk space.
Can this be a default behavior, or at least, enabled via a global config flag or similar? It is soul crushing to have to rebuild all of the deps for a large project for profiling, and rebuild them *again* for normal mode.
Contributor guide
Assessment
This issue has not been assessed yet.