Skip to content

Commit

Permalink
Include foreign libs in allBuildInfo (fixes #4763)
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Sep 13, 2017
1 parent 76d9c35 commit 6e65929
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cabal/Distribution/Types/PackageDescription.hs
Original file line number Diff line number Diff line change
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

0 comments on commit 6e65929

Please sign in to comment.