Skip to content

Commit b99c81c

Browse files
committed
Adds --configure-options to be propagated to all nodes
In haskell#5018, I noted, that `packageConfigConfigureArgs` is a tricky field. I have since then come to the conclusion that most of the time you actually do want the `--configure-options` to be passed down.
1 parent d19f0ed commit b99c81c

File tree

1 file changed

+4
-1
lines changed
  • cabal-install/Distribution/Client/ProjectConfig

1 file changed

+4
-1
lines changed

cabal-install/Distribution/Client/ProjectConfig/Legacy.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,10 @@ commandLineFlagsToProjectConfig globalFlags configFlags configExFlags
193193
splitConfig pc = (pc
194194
, mempty { packageConfigProgramPaths = packageConfigProgramPaths pc
195195
, packageConfigProgramArgs = packageConfigProgramArgs pc
196-
, packageConfigProgramPathExtra = packageConfigProgramPathExtra pc })
196+
, packageConfigProgramPathExtra = packageConfigProgramPathExtra pc
197+
-- turns out, we do want `--configure-options` globally...
198+
, packageConfigConfigureArgs = packageConfigConfigureArgs pc
199+
})
197200

198201
-- | Convert from the types currently used for the user-wide @~/.cabal/config@
199202
-- file into the 'ProjectConfig' type.

0 commit comments

Comments
 (0)