[Git][ghc/ghc][wip/hadrian-cross-stage2] Hard-code ways in settings

Matthew Pickering (@mpickering) gitlab at gitlab.haskell.org
Mon Oct 7 13:34:31 UTC 2024



Matthew Pickering pushed to branch wip/hadrian-cross-stage2 at Glasgow Haskell Compiler / GHC


Commits:
241691c9 by Matthew Pickering at 2024-10-07T14:34:22+01:00
Hard-code ways in settings

- - - - -


1 changed file:

- hadrian/src/Rules/Generate.hs


Changes:

=====================================
hadrian/src/Rules/Generate.hs
=====================================
@@ -523,7 +523,10 @@ generateSettings settingsFile = do
 
         , ("Use interpreter", expr $ yesNo <$> ghcWithInterpreter stage)
         , ("Support SMP", expr $ yesNo <$> targetSupportsSMP stage)
-        , ("RTS ways", escapeArgs . map show . Set.toList <$> getRtsWays)
+        -- Hard-coded as Cabal queries these to determine way support and we
+        -- need to always advertise all ways when bootstrapping.
+        -- The settings file is generated at install time when installing a bindist.
+        , ("RTS ways", return "v p p p_dyn")
         , ("Tables next to code", queryTarget stage (yesNo . tgtTablesNextToCode))
         , ("Leading underscore",  queryTarget stage (yesNo . tgtSymbolsHaveLeadingUnderscore))
         , ("Use LibFFI", expr $ yesNo <$> targetUseLibffiForAdjustors stage)



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/241691c9c56248390395b5461676803fde07a328

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/241691c9c56248390395b5461676803fde07a328
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20241007/d75dd935/attachment.html>


More information about the ghc-commits mailing list