Skip to content

--ghc-options are cached, but shouldn't be #7816

Open
@konsumlamm

Description

@konsumlamm

Describe the bug
When passing GHC options to cabal build (via --ghc-options), those options are still applied on later invocations of cabal build (unless cabal clean has been performed in the meantime).

To Reproduce
Steps to reproduce the behavior:

$ cabal v2-build --ghc-options="-ddump-simpl"
outputs core
modify the code
$ cabal v2-build
still outputs core

Expected behavior
No core output when building the second time (i.e. don't use the GHC options from the previous build).

System information
cabal-install version: 3.6.2.0
GHC version: 8.10.7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions