diff options
Diffstat (limited to 'hadrian/src/Rules')
-rw-r--r-- | hadrian/src/Rules/Generate.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hadrian/src/Rules/Generate.hs b/hadrian/src/Rules/Generate.hs index 689e0fdd3f..32d29019a7 100644 --- a/hadrian/src/Rules/Generate.hs +++ b/hadrian/src/Rules/Generate.hs @@ -185,6 +185,9 @@ generateRules = do -- TODO: simplify, get rid of fake rts context for_ (fst <$> deriveConstantsPairs) $ \constantsFile -> prefix -/- constantsFile %> \file -> do + -- N.B. deriveConstants needs to compile programs which #include + -- PosixSource.h, which #include's ghcplatform.h. Fixes #18290. + need [prefix -/- "ghcplatform.h"] withTempDir $ \dir -> build $ target (rtsContext stage) DeriveConstants [] [file, dir] where |