Skip to content

Commit

Permalink
Include foreign libs in allBuildInfo (fixes #4763)
Browse files Browse the repository at this point in the history
(cherry picked from commit a641d1c)
  • Loading branch information
snoyberg authored and 23Skidoo committed Sep 13, 2017
1 parent d8a5de6 commit c480f69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cabal/Distribution/Types/PackageDescription.hs
Expand Up @@ -314,6 +314,9 @@ allBuildInfo :: PackageDescription -> [BuildInfo]
allBuildInfo pkg_descr = [ bi | lib <- allLibraries pkg_descr
, let bi = libBuildInfo lib
, buildable bi ]
++ [ bi | flib <- foreignLibs pkg_descr
, let bi = foreignLibBuildInfo flib
, buildable bi ]
++ [ bi | exe <- executables pkg_descr
, let bi = buildInfo exe
, buildable bi ]
Expand Down
1 change: 1 addition & 0 deletions Cabal/changelog
Expand Up @@ -7,6 +7,7 @@
* Added a new 'cabal check' warning about unused, undeclared or
non-Unicode flags. Also, it warns about leading dash, which is
unusable but accepted if it's unused in conditionals. (#4687)
* Modify `allBuildInfo` to include foreign library info (#4763).
* Documentation fixes.

2.0.0.2 Mikhail Glushenkov <mikhail.glushenkov@gmail.com> July 2017
Expand Down

0 comments on commit c480f69

Please sign in to comment.