Sven Tennie pushed to branch wip/romes/hadrian-cross-stage2-rebase_SVEN_FIXED at Glasgow Haskell Compiler / GHC

Commits:

4 changed files:

Changes:

  • hadrian/src/Rules/Generate.hs
    ... ... @@ -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
    

  • hadrian/src/Rules/Libffi.hs
    ... ... @@ -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]
    

  • hadrian/src/Rules/Register.hs
    ... ... @@ -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.
    

  • hadrian/src/Rules/Rts.hs
    ... ... @@ -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