From f88fb8c7d803f9d3bf245fa4bd9c50f7a2bd3c5b Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Thu, 17 Dec 2020 11:04:59 -0500 Subject: 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. --- hadrian/src/Rules/Generate.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1