[Git][ghc/ghc][wip/supersven/hadrian-cross-stage3] Generate default.target only from the successor stage for stage0
Sven Tennie pushed to branch wip/supersven/hadrian-cross-stage3 at Glasgow Haskell Compiler / GHC Commits: b2d34f97 by Sven Tennie at 2026-10-11T00:05:25+02:00 Generate default.target only from the successor stage for stage0 This mirrors the behaviour for the settings' rules. - - - - - 1 changed file: - hadrian/src/Rules/Generate.hs Changes: ===================================== hadrian/src/Rules/Generate.hs ===================================== @@ -287,7 +287,9 @@ generateRules = do isCrossStage <- if compilerStage < Stage3 then expr (crossStage compilerStage) else pure False - let libraryStage = if isCrossStage then succStage compilerStage else compilerStage + let libraryStage = case compilerStage of + Stage0 {} -> Stage1 + _ -> if isCrossStage then succStage compilerStage else compilerStage tgt <- expr (targetStage libraryStage) pure $ show tgt { tgtLocallyExecutable = not isCrossStage } View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/b2d34f9787bff31b3e906387bdd94b7a... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/b2d34f9787bff31b3e906387bdd94b7a... You're receiving this email because of your account on gitlab.haskell.org. Manage all notifications: https://gitlab.haskell.org/-/profile/notifications | Help: https://gitlab.haskell.org/help
participants (1)
-
Sven Tennie (@supersven)