Skip to content

Commit ce4a84d

Browse files
committed
Chain configuration of ldProgram
`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.
1 parent 253c719 commit ce4a84d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Cabal/src/Distribution/Simple/GHC/Internal.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ configureToolchain _implInfo ghcProg ghcInfo =
114114
. addKnownProgram
115115
ldProgram
116116
{ programFindLocation = findProg ldProgramName extraLdPath
117-
, programPostConf = configureLd
117+
, programPostConf = \v cp ->
118+
-- Call any existing configuration first and then add any new configuration
119+
configureLd v =<< programPostConf ldProgram v cp
118120
}
119121
. addKnownProgram
120122
arProgram

0 commit comments

Comments
 (0)