diff options
Diffstat (limited to 'hadrian')
-rw-r--r-- | hadrian/src/Rules/Generate.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hadrian/src/Rules/Generate.hs b/hadrian/src/Rules/Generate.hs index aabcde2438..96ef87fbbd 100644 --- a/hadrian/src/Rules/Generate.hs +++ b/hadrian/src/Rules/Generate.hs @@ -189,7 +189,11 @@ generateRules = do 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"] + need + [ prefix -/- "ghcplatform.h" + , prefix -/- "ghcautoconf.h" + , prefix -/- "ghcversion.h" + ] withTempDir $ \dir -> build $ target (rtsContext stage) DeriveConstants [] [file, dir] where |