summaryrefslogtreecommitdiff
path: root/hadrian
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-12-17 11:04:59 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-01-09 21:19:10 -0500
commitf88fb8c7d803f9d3bf245fa4bd9c50f7a2bd3c5b (patch)
tree8e9186b9f6e1589fa218f7c8b8c16fa863e40249 /hadrian
parent9a62ecfa1653db5491f901d317d0c20454e3b426 (diff)
downloadhaskell-f88fb8c7d803f9d3bf245fa4bd9c50f7a2bd3c5b.tar.gz
hadrian: Add missing dependencies
ghcconfig.h, which depends upon ghcautoconf.h, and is a runtime dependency of deriveConstants. This is essentially a continuation of #18290.
Diffstat (limited to 'hadrian')
-rw-r--r--hadrian/src/Rules/Generate.hs6
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