From 02d1633466733f154753753c8d9e94062d334b1a Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Mon, 16 May 2022 14:18:22 +0100 Subject: hadrian: Don't attempt to build dynamic profiling libraries We only support building static profiling libraries, the transformer was requesting things like a dynamic, threaded, debug, profiling RTS, which we have never produced nor distributed. Fixes #21567 --- hadrian/src/Flavour.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hadrian') diff --git a/hadrian/src/Flavour.hs b/hadrian/src/Flavour.hs index 3b5944c6c3..46fdd9abaf 100644 --- a/hadrian/src/Flavour.hs +++ b/hadrian/src/Flavour.hs @@ -203,7 +203,7 @@ enableProfiledGhc :: Flavour -> Flavour enableProfiledGhc flavour = enableLateCCS flavour { rtsWays = do ws <- rtsWays flavour - pure $ (Set.map (\w -> w <> profiling) ws) <> ws + pure $ (Set.map (\w -> if wayUnit Dynamic w then w else w <> profiling) ws) <> ws , libraryWays = (Set.singleton profiling <>) <$> (libraryWays flavour) , ghcProfiled = (>= Stage1) } -- cgit v1.2.1