From a39ed908abd91b7863f8bd9ddfd72bc11535c451 Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Mon, 7 Feb 2022 14:40:07 +0000 Subject: testsuite: Add missing dependency on ghcconfig --- hadrian/src/Rules/Test.hs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'hadrian/src/Rules/Test.hs') 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" -- cgit v1.2.1