Skip to content

Commit 4bf6f83

Browse files
committed
fix: Make newSemaphoreJobControl respect verbosity
1 parent a6b99b8 commit 4bf6f83

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cabal-install/src/Distribution/Client/JobControl.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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 "

cabal-install/src/Distribution/Client/ProjectBuilding.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)