Skip to content

Commit

Permalink
Chain configuration of ldProgram
Browse files Browse the repository at this point in the history
`ldProgram` gets configured in two places, a seemingly default and
a GHC specific version. The later needs to be updated so that it
first calls the default configuration and then the new GHC version.
  • Loading branch information
erikd committed Nov 14, 2023
1 parent 9eb4451 commit 8b5e665
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Cabal/src/Distribution/Simple/GHC/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ configureToolchain _implInfo ghcProg ghcInfo =
. addKnownProgram
ldProgram
{ programFindLocation = findProg ldProgramName extraLdPath
, programPostConf = configureLd
, programPostConf = \v cp ->
-- Call any existing configuration first and then add any new configuration
configureLd v =<< programPostConf ldProgram v cp
}
. addKnownProgram
arProgram
Expand Down

0 comments on commit 8b5e665

Please sign in to comment.