Skip to content
Snippets Groups Projects
  • Matthew Pickering's avatar
    4c37a04a
    hadrian: Flavour: Change args -> extraArgs · 4c37a04a
    Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
    Previously in a flavour definition you could override all the flags
    which were passed to GHC. This causes issues when needed to compute a
    package hash because we need to know what these extra arguments are
    going to be before computing the hash. The solution is to modify flavour
    so that the arguments you pass here are just extra ones rather than all
    the arguments that you need to compile something.
    
    This makes things work more like how cabal.project files work when you
    give extra arguments to a package and also means that flavour
    transformers correctly affect the hash.
    4c37a04a
    History
    hadrian: Flavour: Change args -> extraArgs
    Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
    Previously in a flavour definition you could override all the flags
    which were passed to GHC. This causes issues when needed to compute a
    package hash because we need to know what these extra arguments are
    going to be before computing the hash. The solution is to modify flavour
    so that the arguments you pass here are just extra ones rather than all
    the arguments that you need to compile something.
    
    This makes things work more like how cabal.project files work when you
    give extra arguments to a package and also means that flavour
    transformers correctly affect the hash.
Code owners
Validate.hs 2.28 KiB