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).
See also #2442 and #1176.
Example see #1176 (comment).
It seems that
cabal v2-buildwants to rebuild all dependencies when I add--ghc-options=-O0or...=-fno-codeto 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).See also #2442 and #1176.
Example see #1176 (comment).