diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-08-21 23:12:37 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-09-14 17:17:04 -0400 |
commit | 6515c32b6616645918e7ea95db59b0467df12bfb (patch) | |
tree | f3f8e0ec6afdd6fed2122851e94805cd4c076a74 /hadrian/src/Rules | |
parent | b42cedbefb296437014d0768348b740b960943c0 (diff) | |
download | haskell-6515c32b6616645918e7ea95db59b0467df12bfb.tar.gz |
hadrian: Add some more packages to multi-cradle
The main improvement here is to pass `-this-unit-id` for executables so
that they can be added to the multi-cradle if desired as well as normal
library packages.
Diffstat (limited to 'hadrian/src/Rules')
-rw-r--r-- | hadrian/src/Rules/ToolArgs.hs | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/hadrian/src/Rules/ToolArgs.hs b/hadrian/src/Rules/ToolArgs.hs index e07d5743c4..6bcdafdcdf 100644 --- a/hadrian/src/Rules/ToolArgs.hs +++ b/hadrian/src/Rules/ToolArgs.hs @@ -79,8 +79,6 @@ multiSetup pkg_s = do (Ghc ToolArgs stage0InTree) [] ["ignored"] arg_list <- interpret fake_target getArgs let c = Context stage0InTree p (if windowsHost then vanilla else dynamic) Inplace -- Critical use of Inplace, one of the main motivations! - -- readContextData has the effect of configuring the package so all - -- dependent packages will also be built. cd <- readContextData c srcs <- hsSources c gens <- interpretInContext c generatedDependencies @@ -128,7 +126,6 @@ mkToolTarget es p = do let fake_target = target context (Ghc ToolArgs stage0InTree) [] ["ignored"] -- Generate any source files for this target - cd <- readContextData context srcs <- hsSources context gens <- interpretInContext context generatedDependencies @@ -154,17 +151,17 @@ toolTargets = [ binary , directory , process , exceptions --- , ghc # depends on ghc library --- , runGhc # depends on ghc library + -- , ghc -- # depends on ghc library + -- , runGhc -- # depends on ghc library , ghcBoot , ghcBootTh , ghcHeap , ghci --- , ghcPkg # executable --- , haddock # depends on ghc library --- , hsc2hs # executable + , ghcPkg -- # executable + -- , haddock -- # depends on ghc library + , hsc2hs -- # executable , hpc --- , hpcBin # executable + , hpcBin -- # executable , mtl , parsec , time @@ -172,7 +169,7 @@ toolTargets = [ binary , text , terminfo , transformers --- , unlit # executable + , unlit -- # executable ] ++ if windowsHost then [ win32 ] else [ unix ] -- | Create a mapping from files to which component it belongs to. |