Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
679812d2
Commit
679812d2
authored
Dec 21, 2015
by
Edward Z. Yang
Browse files
Comment on #2971 at the relevant place needing a fix.
Signed-off-by:
Edward Z. Yang
<
ezyang@cs.stanford.edu
>
parent
e250bccf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/Simple/PreProcess.hs
View file @
679812d2
...
...
@@ -448,6 +448,12 @@ ppHsc2hs bi lbi =
++
[
"-o"
,
outFile
,
inFile
]
}
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
))
isOSX
=
case
buildOS
of
OSX
->
True
;
_
->
False
isELF
=
case
buildOS
of
OSX
->
False
;
Windows
->
False
;
AIX
->
False
;
_
->
True
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment