Commit 679812d2 authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Comment on #2971 at the relevant place needing a fix.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent e250bccf
...@@ -448,6 +448,12 @@ ppHsc2hs bi lbi = ...@@ -448,6 +448,12 @@ ppHsc2hs bi lbi =
++ ["-o", outFile, inFile] ++ ["-o", outFile, inFile]
} }
where where
-- TODO: installedPkgs contains ALL dependencies associated with
-- the package, but we really only want to look at packages for the
-- *current* dependency. We should use PackageIndex.dependencyClosure
-- on the direct depends of the component. Can't easily do that,
-- because the signature of this function is wrong. Tracked with
-- #2971 (which has a test case.)
pkgs = PackageIndex.topologicalOrder (packageHacks (installedPkgs lbi)) pkgs = PackageIndex.topologicalOrder (packageHacks (installedPkgs lbi))
isOSX = case buildOS of OSX -> True; _ -> False isOSX = case buildOS of OSX -> True; _ -> False
isELF = case buildOS of OSX -> False; Windows -> False; AIX -> False; _ -> True; isELF = case buildOS of OSX -> False; Windows -> False; AIX -> False; _ -> True;
......
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