[Git][ghc/ghc][wip/T24652] Remove unecessary stage0 packages
Teo Camarasu (@teo)
gitlab at gitlab.haskell.org
Thu Apr 18 13:52:58 UTC 2024
Teo Camarasu pushed to branch wip/T24652 at Glasgow Haskell Compiler / GHC
Commits:
31a71e2e by Teo Camarasu at 2024-04-18T14:52:49+01:00
Remove unecessary stage0 packages
- - - - -
2 changed files:
- hadrian/src/Rules/ToolArgs.hs
- hadrian/src/Settings/Default.hs
Changes:
=====================================
hadrian/src/Rules/ToolArgs.hs
=====================================
@@ -132,17 +132,9 @@ mkToolTarget es p = do
-- critically the `exe:ghc` component as that depends on the GHC library
-- which takes a while to compile.
toolTargets :: [Package]
-toolTargets = [ binary
- , bytestring
- , cabalSyntax
+toolTargets = [ cabalSyntax
, cabal
, compiler
- , containers
- , directory
- , process
- , exceptions
- , filepath
- , osString
-- , ghc -- # depends on ghc library
-- , runGhc -- # depends on ghc library
, ghcBoot
@@ -157,15 +149,10 @@ toolTargets = [ binary
, hsc2hs -- # executable
, hpc
, hpcBin -- # executable
- , mtl
- , parsec
- , time
, templateHaskellNext
- , text
- , transformers
, semaphoreCompat
, unlit -- # executable
- ] ++ if windowsHost then [ win32 ] else [ unix ]
+ ] ++ if windowsHost then [ time, win32 ] else [ ]
-- | Create a mapping from files to which component it belongs to.
dirMap :: Action [(FilePath, (Package, [String]))]
=====================================
hadrian/src/Settings/Default.hs
=====================================
@@ -80,43 +80,30 @@ stageBootPackages = return
stage0Packages :: Action [Package]
stage0Packages = do
cross <- flag CrossCompiling
- return $ [ binary
- , bytestring
- , cabalSyntax
+ return $ [ cabalSyntax
, cabal
, compiler
- , containers
- , directory
- , process
- , exceptions
- , filepath
, ghc
- , runGhc
, ghcBoot
, ghcBootThNext
- , ghcPlatform
, ghcHeap
+ , ghcPkg
+ , ghcPlatform
, ghcToolchain
, ghci
- , ghcPkg
, haddock
- , hsc2hs
+ , hp2ps
, hpc
, hpcBin
- , mtl
- , osString
- , parsec
+ , hsc2hs
+ , runGhc
, semaphoreCompat
- , time
, templateHaskellNext
- , text
- , transformers
, unlit
- , hp2ps
- , if windowsHost then win32 else unix
]
++ [ terminfo | not windowsHost, not cross ]
- ++ [ timeout | windowsHost ]
+ ++ [ time | windowsHost ]
+ ++ [ timeout | windowsHost ]
-- | Packages built in 'Stage1' by default. You can change this in "UserSettings".
stage1Packages :: Action [Package]
@@ -143,12 +130,14 @@ stage1Packages = do
[ libraries0 -- Build all Stage0 libraries in Stage1
, [ array
, base
+ , binary
+ , bytestring
, containers
, deepseq
, exceptions
, ghc
- , ghcBootTh
, ghcBignum
+ , ghcBootTh
, ghcCompact
, ghcExperimental
, ghcInternal
@@ -158,11 +147,16 @@ stage1Packages = do
, hp2ps
, hsc2hs
, integerGmp
+ , mtl
+ , parsec
, pretty
, rts
, semaphoreCompat
- , templateHaskell
, stm
+ , templateHaskell
+ , text
+ , time
+ , transformers
, unlit
, xhtml
, if winTarget then win32 else unix
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/31a71e2e8999ecf39a210d0bd8dd48c9fbbae791
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/31a71e2e8999ecf39a210d0bd8dd48c9fbbae791
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/20240418/ce006e08/attachment-0001.html>
More information about the ghc-commits
mailing list