Skip to content

Commit ddb207f

Browse files
hsyl20andreabedini
authored andcommitted
fix: don't build Setup programs with -threaded
Don't enable -threaded unconditionnally when building Setup.hs. We may only have vanilla libraries (but maybe we don't have them either?) Revert ae0e752
1 parent 42b95da commit ddb207f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,10 @@ getExternalSetupMethod verbosity options pkg bt = do
10721072
(program, extraOpts) =
10731073
case compilerFlavor compiler of
10741074
GHCJS -> (ghcjsProgram, ["-build-runner"])
1075-
_ -> (ghcProgram, ["-threaded"])
1075+
_ -> (ghcProgram, [])
1076+
-- FIXME: don't enable -threaded unconditionnally: we may
1077+
-- only have vanilla libraries (but maybe we don't have them
1078+
-- either?)
10761079
cabalDep =
10771080
maybe
10781081
[]

0 commit comments

Comments
 (0)