diff options
-rw-r--r-- | hadrian/src/Rules/Test.hs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hadrian/src/Rules/Test.hs b/hadrian/src/Rules/Test.hs index 8ce3daa70b..fea8a8f7b6 100644 --- a/hadrian/src/Rules/Test.hs +++ b/hadrian/src/Rules/Test.hs @@ -67,7 +67,12 @@ inTreeOutTree inTree outTree = do testsuiteDeps :: Rules () testsuiteDeps = do - "test:ghc" ~> inTreeOutTree (\stg -> needTestsuitePackages stg) (return ()) + root <- buildRootRules + "test:ghc" ~> inTreeOutTree + (\stg -> do + needTestsuitePackages stg + need [(root -/- ghcConfigPath)]) + (return ()) ghcConfigPath :: FilePath ghcConfigPath = "test/ghcconfig" |