Skip to content

Update installedPkgs with internal deps, fix a bug #4006

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

ezyang
Copy link
Contributor

@ezyang ezyang commented Oct 19, 2016

Only consider dependencies in closure when computing -I on hsc2hs

Previously, we unconditionally blasted in all packages, even
if our component didn't actually depend on them.
This fixes #2971.

Also, added a test T2971a which is the opposite problem; previously
we didn't bring in include-dirs from internal libraries. That
was fixed by the previous commit.

This branch is based off of #4003 so ignore those commits.

@ezyang ezyang added this to the 2.0 milestone Oct 19, 2016
@ezyang ezyang self-assigned this Oct 19, 2016
@mention-bot
Copy link

@ezyang, thanks for your PR! By analyzing the history of the files in this pull request, we identified @phadej, @dcoutts and @23Skidoo to be potential reviewers.

Previously, we unconditionally blasted in all packages, even
if our component didn't actually depend on them.
This fixes haskell#2971.

Also, added a test T2971a which is the opposite problem; previously
we didn't bring in include-dirs from internal libraries.  That
was fixed by the previous commit.

Signed-off-by: Edward Z. Yang <[email protected]>
Copy link
Contributor

@dcoutts dcoutts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -96,18 +99,21 @@ build pkg_descr lbi flags suffixes = do

internalPackageDB <- createInternalPackageDB verbosity lbi distPref

for_ componentsToBuild $ \target -> do
foldM_ `flip` installedPkgs lbi `flip` componentsToBuild $ \index target -> do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any chance we can write this so someone might understand it?

@ezyang
Copy link
Contributor Author

ezyang commented Oct 20, 2016

Merged.

@ezyang ezyang closed this Oct 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hsc2hs invocation picks up too many flags from pkgdb
3 participants