Closed
Description
It seems that cabal v2-build
wants to rebuild all dependencies when I add --ghc-options=-O0
or ...=-fno-code
to e.g. just check compilability after a change.
I don't understand the rationale behind this behavior.
Is there a workaround? I'd like to alternate compilation between -fno-code
(for just type-checking), -O0
(for running a first few test), and -O1
(for thorough testing with a large testsuite).
Example see #1176 (comment).