Commit f88fb8c7 authored by Ben Gamari's avatar Ben Gamari 🐢 Committed by Marge Bot

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.
parent 9a62ecfa
Pipeline #29703 canceled with stages
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment