If you build without --profile and then with stack doesn't recompile the second time to create a binary with profiling options if no files have changed. This is in opposition to ghc behaviour. If you build without -prof and then with, ghc will recompile the second time even if no files changed.
Steps to reproduce
For example:
- Run command
stack clean && stack build.
- Run command
stack build --profile.
Expected
Stack builds two times, first without profiling options and then another time with.
Actual
Stack builds only once without profiling. It ignores the second build instruction because no files changed.
Stack version
$ stack --version
Version 1.3.2 x86_64
Method of installation
- ArchLinux package
community/stack.