Skip to content

Commit

Permalink
Merge pull request #3884 from 23Skidoo/print-num-jobs
Browse files Browse the repository at this point in the history
Print the number of jobs we're using.
  • Loading branch information
23Skidoo committed Sep 22, 2016
2 parents c7852b5 + 6b44e7b commit 4b7ccf4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions cabal-install/Distribution/Client/Install.hs
Expand Up @@ -1072,6 +1072,7 @@ performInstallations verbosity
when parallelInstall $
notice verbosity $ "Notice: installing into a sandbox located at "
++ sandboxDir
info verbosity $ "Using " ++ (show numJobs) ++ " threads."

jobControl <- if parallelInstall then newParallelJobControl numJobs
else newSerialJobControl
Expand Down
6 changes: 4 additions & 2 deletions cabal-install/Distribution/Client/ProjectOrchestration.hs
Expand Up @@ -81,7 +81,8 @@ import Distribution.Simple.Setup (HaddockFlags)
import qualified Distribution.Simple.Setup as Setup
import Distribution.Simple.Command (commandShowOptions)

import Distribution.Simple.Utils (die, notice, noticeNoWrap, debug)
import Distribution.Simple.Utils (die, info, notice, noticeNoWrap
,debug)
import Distribution.Verbosity
import Distribution.Text

Expand Down Expand Up @@ -176,7 +177,8 @@ runProjectPreBuildPhase
(projectConfigShared projectConfig)
(projectConfigBuildOnly projectConfig)
(projectConfigBuildOnly cliConfig)

info verbosity $ "Using " ++ (show . buildSettingNumJobs $ buildSettings)
++ " threads."
-- The plan for what to do is represented by an 'ElaboratedInstallPlan'

-- Now given the specific targets the user has asked for, decide
Expand Down

0 comments on commit 4b7ccf4

Please sign in to comment.