You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ghc option -ddump-splices is cached and subsequently ignored.
i.e. in a clean project, cabal build --ghc-options=-ddump-splices will enable the option for all subsequent calls to cabal build, whether or not the option is specified.
Likewise, an initial cabal build will cause later invocations of cabal build --ghc-options=-ddump-splices to ignore the option and continue to not dump splices.
To Reproduce
(Sorry, don't have an easy reproducer at hand, though I think it should be easy to create one)
Expected behavior
I would expect -ddump-splices to be treated as something like a verbosity flag. It should only affect the current run. It shouldn't affect recompilation: compiled things should stay compiled.
System information
NixOS 23.05
cabal 3.10.1.0
ghc 9.2.8
The text was updated successfully, but these errors were encountered:
I think this is related to the list of GHC flags that tells cabal for which to recompile, but it's not just ddump-splices on the list. Perhaps there is. or we need. another list, which tells for which options to reconfigure or something like that. Or just reconfigure for all, because it's cheap and does not wipe out the cache.
Uh oh!
There was an error while loading. Please reload this page.
Description
The ghc option -ddump-splices is cached and subsequently ignored.
i.e. in a clean project,
cabal build --ghc-options=-ddump-splices
will enable the option for all subsequent calls tocabal build
, whether or not the option is specified.Likewise, an initial
cabal build
will cause later invocations ofcabal build --ghc-options=-ddump-splices
to ignore the option and continue to not dump splices.To Reproduce
(Sorry, don't have an easy reproducer at hand, though I think it should be easy to create one)
Expected behavior
I would expect -ddump-splices to be treated as something like a verbosity flag. It should only affect the current run. It shouldn't affect recompilation: compiled things should stay compiled.
System information
The text was updated successfully, but these errors were encountered: