From adfd46f70d40fca9f14603a15a8ac15089debab8 Mon Sep 17 00:00:00 2001 From: Sylvain Henry Date: Fri, 21 Feb 2025 13:04:40 +0100 Subject: [PATCH] Don't build Setup programs with -threaded Revert ae0e752eeab7d5a185295801fe54157e9012e2ba --- cabal-install/src/Distribution/Client/SetupWrapper.hs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cabal-install/src/Distribution/Client/SetupWrapper.hs b/cabal-install/src/Distribution/Client/SetupWrapper.hs index 1b401ff6f7c..f0f977b9101 100644 --- a/cabal-install/src/Distribution/Client/SetupWrapper.hs +++ b/cabal-install/src/Distribution/Client/SetupWrapper.hs @@ -1070,7 +1070,10 @@ getExternalSetupMethod verbosity options pkg bt = do (program, extraOpts) = case compilerFlavor compiler of GHCJS -> (ghcjsProgram, ["-build-runner"]) - _ -> (ghcProgram, ["-threaded"]) + _ -> (ghcProgram, []) + -- FIXME: don't enable -threaded unconditionnally: we may + -- only have vanilla libraries (but maybe we don't have them + -- either?) cabalDep = maybe []