Skip to content

Commit

Permalink
Rename LocalBuildInfo extraArgs to extraConfigArgs to avoid name clashes
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoutts committed Oct 10, 2010
1 parent ba5f9bd commit 93386b4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
10 changes: 7 additions & 3 deletions Distribution/Simple.hs
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,12 @@ configureAction hooks flags args = do

localbuildinfo0 <- confHook hooks epkg_descr flags

-- remember the .cabal filename if we know it and all the extra command line args
let localbuildinfo = localbuildinfo0{ pkgDescrFile = mb_pd_file, extraArgs = args }
-- remember the .cabal filename if we know it
-- and all the extra command line args
let localbuildinfo = localbuildinfo0 {
pkgDescrFile = mb_pd_file,
extraConfigArgs = args
}
writePersistBuildConfig distPref localbuildinfo

let pkg_descr = localPkgDescr localbuildinfo
Expand Down Expand Up @@ -422,7 +426,7 @@ getBuildConfig hooks verbosity distPref = do
-- Use the current, not saved verbosity level:
configVerbosity = Flag verbosity
}
configureAction hooks cFlags' (extraArgs lbi)
configureAction hooks cFlags' (extraConfigArgs lbi)


-- --------------------------------------------------------------------------
Expand Down
4 changes: 3 additions & 1 deletion Distribution/Simple/Configure.hs
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,9 @@ configure (pkg_descr0, pbi) cfg

let lbi = LocalBuildInfo{
configFlags = cfg,
extraArgs = [], -- Actual args would be put here in configureAction
extraConfigArgs = [], -- Currently configure does not
-- take extra args, but if it
-- did they would go here.
installDirTemplates = installDirs,
compiler = comp,
buildDir = distPref </> "build",
Expand Down
6 changes: 3 additions & 3 deletions Distribution/Simple/LocalBuildInfo.hs
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ import Data.List (nub)
-- 'Distribution.Setup.ConfigFlags'.
data LocalBuildInfo = LocalBuildInfo {
configFlags :: ConfigFlags,
-- ^ Options passed to the configuration step.
-- ^ Options passed to the configuration step.
-- Needed to re-run configuration when .cabal is out of date
extraArgs :: [String],
-- ^ Extra args on the command line for the configuration step.
extraConfigArgs :: [String],
-- ^ Extra args on the command line for the configuration step.
-- Needed to re-run configuration when .cabal is out of date
installDirTemplates :: InstallDirTemplates,
-- ^ The installation directories for the various differnt
Expand Down

0 comments on commit 93386b4

Please sign in to comment.