File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Cabal/Distribution/Simple Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -448,6 +448,12 @@ ppHsc2hs bi lbi =
448
448
++ [" -o" , outFile, inFile]
449
449
}
450
450
where
451
+ -- TODO: installedPkgs contains ALL dependencies associated with
452
+ -- the package, but we really only want to look at packages for the
453
+ -- *current* dependency. We should use PackageIndex.dependencyClosure
454
+ -- on the direct depends of the component. Can't easily do that,
455
+ -- because the signature of this function is wrong. Tracked with
456
+ -- #2971 (which has a test case.)
451
457
pkgs = PackageIndex. topologicalOrder (packageHacks (installedPkgs lbi))
452
458
isOSX = case buildOS of OSX -> True ; _ -> False
453
459
isELF = case buildOS of OSX -> False ; Windows -> False ; AIX -> False ; _ -> True ;
You can’t perform that action at this time.
0 commit comments