Skip to content
Snippets Groups Projects
Commit 702f7964 authored by Matthew Pickering's avatar Matthew Pickering Committed by Marge Bot
Browse files

Make interface files and object files depend on inplace .conf file

A potential fix for #24737
parent a3725c88
No related branches found
No related tags found
No related merge requests found
......@@ -218,6 +218,9 @@ compileHsObjectAndHi rs objpath = do
ctxPath <- contextPath ctx
(src, deps) <- lookupDependencies (ctxPath -/- ".dependencies") objpath
need (src:deps)
-- The .conf file is needed when template-haskell is implicitly added as a dependency
-- when a module in the template-haskell package is compiled. (See #24737)
when (isLibrary (C.package ctx)) (need . (:[]) =<< pkgConfFile ctx)
-- The .dependencies file lists indicating inputs. ghc will
-- generally read more *.hi and *.hi-boot files (direct inputs).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment