[Git][ghc/ghc][wip/T25282] Expose list of wired-in units in --info

Teo Camarasu (@teo) gitlab at gitlab.haskell.org
Wed Sep 25 10:46:58 UTC 2024



Teo Camarasu pushed to branch wip/T25282 at Glasgow Haskell Compiler / GHC


Commits:
4288440b by Teo Camarasu at 2024-09-25T11:45:32+01:00
Expose list of wired-in units in --info

This lets Cabal know which packages are wired-in.
In turn Cabal can use this information to determine which packages
should be re-installable.
Previously this was a fixed list that was hard-coded into Cabal.

See: <https://github.com/haskell/cabal/issues/10087>

Resolves #25282

- - - - -


1 changed file:

- compiler/GHC/Driver/Session.hs


Changes:

=====================================
compiler/GHC/Driver/Session.hs
=====================================
@@ -3423,7 +3423,8 @@ compilerInfo dflags
        ("LibDir",                      topDir dflags),
        -- This is always an absolute path, unlike "Relative Global Package DB" which is
        -- in the settings file.
-       ("Global Package DB",           globalPackageDatabasePath dflags)
+       ("Global Package DB",           globalPackageDatabasePath dflags),
+       ("Wired-in units",  unwords . map unitIdString $ wiredInUnitIds)
       ]
   where
     showBool True  = "YES"



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4288440b9f8d8c107f469df8d77e36407e13ed1d

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4288440b9f8d8c107f469df8d77e36407e13ed1d
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/20240925/054ee63a/attachment.html>


More information about the ghc-commits mailing list