Commit ec25fe59 authored by Alp Mestanogullari's avatar Alp Mestanogullari Committed by Marge Bot
Browse files

Hadrian: remove superfluous dependencies in Rules.Compile

Each package's object files were 'need'ing the library files of all transitive
dependencies of the current package, whichi is pointless since the said
libraries are not needed until we link those object files together.

This fixes #16759.
parent 71e75ba6
......@@ -10,7 +10,6 @@ import Rules.Generate
import Settings
import Target
import Utilities
import Rules.Library
import qualified Text.Parsec as Parsec
......@@ -177,7 +176,6 @@ compileHsObjectAndHi rs objpath = do
ctxPath <- contextPath ctx
(src, deps) <- lookupDependencies (ctxPath -/- ".dependencies") objpath
need (src:deps)
needLibrary =<< contextDependencies ctx
-- The .dependencies file lists indicating inputs. ghc will
-- generally read more *.hi and *.hi-boot files (direct inputs).
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