summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlp Mestanogullari <alpmestan@gmail.com>2019-06-11 14:27:17 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-06-13 23:35:56 -0400
commitec25fe5986c13f673882a88a3107dfa2e0cec254 (patch)
treea92871a47f8a78394058a143b0146d6669bce843
parent71e75ba6d892e8dfb6794f0ce70d01c9521b77c5 (diff)
downloadhaskell-ec25fe5986c13f673882a88a3107dfa2e0cec254.tar.gz
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.
-rw-r--r--hadrian/src/Rules/Compile.hs2
1 files changed, 0 insertions, 2 deletions
diff --git a/hadrian/src/Rules/Compile.hs b/hadrian/src/Rules/Compile.hs
index 50915f3559..2227bb01ca 100644
--- a/hadrian/src/Rules/Compile.hs
+++ b/hadrian/src/Rules/Compile.hs
@@ -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).