Sven Tennie pushed to branch wip/romes/hadrian-cross-stage2-rebase_SVEN_FIXED at Glasgow Haskell Compiler / GHC
Commits:
-
d4c43fdc
by Sven Tennie at 2025-09-21T09:25:07+02:00
4 changed files:
- hadrian/src/Rules/Generate.hs
- hadrian/src/Rules/Libffi.hs
- hadrian/src/Rules/Register.hs
- hadrian/src/Rules/Rts.hs
Changes:
| ... | ... | @@ -54,7 +54,7 @@ ghcInternalDependencies = do |
| 54 | 54 | rtsDependencies :: Expr [FilePath]
|
| 55 | 55 | rtsDependencies = do
|
| 56 | 56 | rtsPath <- staged rtsBuildPath
|
| 57 | - jsTarget <- staged isJsTarget
|
|
| 57 | + jsTarget <- succStaged isJsTarget
|
|
| 58 | 58 | useSystemFfi <- succStaged (buildFlag UseSystemFfi)
|
| 59 | 59 | |
| 60 | 60 | let -- headers common to native and JS RTS
|
| ... | ... | @@ -69,7 +69,7 @@ dynLibManifest = dynLibManifest' buildRoot |
| 69 | 69 | -- | Need the (locally built) libffi library.
|
| 70 | 70 | needLibffi :: Stage -> Action ()
|
| 71 | 71 | needLibffi stage = do
|
| 72 | - jsTarget <- isJsTarget stage
|
|
| 72 | + jsTarget <- isJsTarget (succStage stage)
|
|
| 73 | 73 | unless jsTarget $ do
|
| 74 | 74 | manifest <- dynLibManifest stage
|
| 75 | 75 | need [manifest]
|
| ... | ... | @@ -150,7 +150,7 @@ buildConfFinal rs context@Context {..} _conf = do |
| 150 | 150 | |
| 151 | 151 | -- Special package cases (these should ideally be rolled into Cabal).
|
| 152 | 152 | when (package == rts) $ do
|
| 153 | - jsTarget <- isJsTarget stage
|
|
| 153 | + jsTarget <- isJsTarget (succStage stage)
|
|
| 154 | 154 | |
| 155 | 155 | -- If Cabal knew about "generated-headers", we could read them from the
|
| 156 | 156 | -- 'configuredCabal' information, and just "need" them here.
|
| ... | ... | @@ -130,7 +130,7 @@ needRtsLibffiTargets :: Stage -> Action [FilePath] |
| 130 | 130 | needRtsLibffiTargets stage = do
|
| 131 | 131 | rtsPath <- rtsBuildPath stage
|
| 132 | 132 | useSystemFfi <- buildFlag UseSystemFfi (succStage stage)
|
| 133 | - jsTarget <- isJsTarget stage
|
|
| 133 | + jsTarget <- isJsTarget (succStage stage)
|
|
| 134 | 134 | |
| 135 | 135 | -- Header files (in the rts build dir).
|
| 136 | 136 | let headers = fmap ((rtsPath -/- "include") -/-) libffiHeaderFiles
|