Skip to content

Commit 811ba61

Browse files
mpickeringjulialongtin
authored andcommitted
Require version 3,11 of Cabal to support --semaphore flag
Fixes #9197
1 parent f382433 commit 811ba61

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4284,8 +4284,9 @@ setupHsBuildFlags par_strat elab _ verbosity builddir =
42844284
, buildDistPref = toFlag builddir
42854285
, buildNumJobs = mempty -- TODO: [nice to have] sometimes want to use toFlag (Just numBuildJobs),
42864286
, buildUseSemaphore =
4287-
if elabSetupScriptCliVersion elab >= mkVersion [3, 9, 0, 0]
4288-
then par_strat
4287+
if elabSetupScriptCliVersion elab >= mkVersion [3, 11, 0, 0]
4288+
then -- Cabal 3.11 is the first version that supports parallelism semaphores
4289+
par_strat
42894290
else mempty
42904291
, buildArgs = mempty -- unused, passed via args not flags
42914292
, buildCabalFilePath = mempty

0 commit comments

Comments
 (0)