Skip to content

ghc option "-ddump-splices" is cached and ignored in subsequent calls to "cabal build" #9316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
chreekat opened this issue Oct 7, 2023 · 3 comments

Comments

@chreekat
Copy link
Collaborator

chreekat commented Oct 7, 2023

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 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
@Mikolaj
Copy link
Member

Mikolaj commented Oct 7, 2023

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.

@gbaz
Copy link
Collaborator

gbaz commented Oct 9, 2023

related #7973

@chreekat
Copy link
Collaborator Author

Related #10782 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants