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

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