summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-12-17 11:04:59 -0500
committerBen Gamari <ben@well-typed.com>2021-01-06 22:33:03 -0500
commit737442e5217a8883bd1bed50298e9e4476fed5b5 (patch)
tree7452d9f1d0f27d56a177ba4f8d7b8b536afd5f5d
parent26a928b8fdb1b4ccb75e8edb620b8cf12cb38621 (diff)
downloadhaskell-wip/hadrian-deps.tar.gz
hadrian: Add missing dependencieswip/hadrian-deps
ghcconfig.h, which depends upon ghcautoconf.h, and is a runtime dependency of deriveConstants. This is essentially a continuation of #18290.
-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