File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
cabal-install/src/Distribution/Client Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ import Control.Monad (forever, replicateM_)
45
45
import Distribution.Client.Compat.Semaphore
46
46
import Distribution.Compat.Stack
47
47
import Distribution.Simple.Utils
48
- import Distribution.Verbosity
49
48
import System.Semaphore
50
49
51
50
-- | A simple concurrency abstraction. Jobs can be spawned and can complete
@@ -171,13 +170,13 @@ readAllTChan qvar = go []
171
170
--
172
171
-- This uses the GHC -jsem option to allow GHC to take additional semaphore slots
173
172
-- if we are not using them all.
174
- newSemaphoreJobControl :: WithCallStack (Int -> IO (JobControl IO a ))
175
- newSemaphoreJobControl n
173
+ newSemaphoreJobControl :: WithCallStack (Verbosity -> Int -> IO (JobControl IO a ))
174
+ newSemaphoreJobControl _ n
176
175
| n < 1 || n > 1000 =
177
176
error $ " newParallelJobControl: not a sensible number of jobs: " ++ show n
178
- newSemaphoreJobControl maxJobLimit = do
177
+ newSemaphoreJobControl verbosity maxJobLimit = do
179
178
sem <- freshSemaphore " cabal_semaphore" maxJobLimit
180
- notice normal $
179
+ notice verbosity $
181
180
" Created semaphore called "
182
181
++ getSemaphoreName (semaphoreName sem)
183
182
++ " with "
Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ rebuildTargets
366
366
NumJobs n -> newParallelJobControl (fromMaybe numberOfProcessors n)
367
367
UseSem n ->
368
368
if jsemSupported compiler
369
- then newSemaphoreJobControl n
369
+ then newSemaphoreJobControl verbosity n
370
370
else do
371
371
warn verbosity " -jsem is not supported by the selected compiler, falling back to normal parallelism control."
372
372
newParallelJobControl n
You can’t perform that action at this time.
0 commit comments