File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
cabal-install/src/Distribution/Client Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -171,13 +171,13 @@ readAllTChan qvar = go []
171171--
172172-- This uses the GHC -jsem option to allow GHC to take additional semaphore slots
173173-- if we are not using them all.
174- newSemaphoreJobControl :: WithCallStack (Int -> IO (JobControl IO a ))
175- newSemaphoreJobControl n
174+ newSemaphoreJobControl :: WithCallStack (Verbosity -> Int -> IO (JobControl IO a ))
175+ newSemaphoreJobControl _ n
176176 | n < 1 || n > 1000 =
177177 error $ " newParallelJobControl: not a sensible number of jobs: " ++ show n
178- newSemaphoreJobControl maxJobLimit = do
178+ newSemaphoreJobControl verbosity maxJobLimit = do
179179 sem <- freshSemaphore " cabal_semaphore" maxJobLimit
180- notice normal $
180+ notice verbosity $
181181 " Created semaphore called "
182182 ++ getSemaphoreName (semaphoreName sem)
183183 ++ " with "
Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ rebuildTargets
366366 NumJobs n -> newParallelJobControl (fromMaybe numberOfProcessors n)
367367 UseSem n ->
368368 if jsemSupported compiler
369- then newSemaphoreJobControl n
369+ then newSemaphoreJobControl verbosity n
370370 else do
371371 warn verbosity " -jsem is not supported by the selected compiler, falling back to normal parallelism control."
372372 newParallelJobControl n
You can’t perform that action at this time.
0 commit comments