Skip to content

Commit

Permalink
Merge pull request #3160 from varosi/varosi/mingw_bin
Browse files Browse the repository at this point in the history
#3126 Use MinGW bin folder for dynamic libraries searching
  • Loading branch information
mgsloan authored Jun 11, 2017
2 parents 0e5a2e1 + a13eb4b commit 78ebdf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Other enhancements:
* Better error messages when creating or building packages which alias
wired-in packages. See
[#3172](https://github.com/commercialhaskell/stack/issues/3172).
* MinGW bin folder now is searched for dynamic libraries. See [#3126](https://github.com/commercialhaskell/stack/issues/3126)

Bug fixes:

Expand Down
2 changes: 2 additions & 0 deletions src/Stack/Setup/Installed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ extraDirs tool = do
]
, edLib =
[ dir </> $(mkRelDir "mingw32") </> $(mkRelDir "lib")
, dir </> $(mkRelDir "mingw32") </> $(mkRelDir "bin")
]
}
(Platform Cabal.X86_64 Cabal.Windows, "msys2") -> return mempty
Expand All @@ -155,6 +156,7 @@ extraDirs tool = do
]
, edLib =
[ dir </> $(mkRelDir "mingw64") </> $(mkRelDir "lib")
, dir </> $(mkRelDir "mingw64") </> $(mkRelDir "bin")
]
}
(_, isGHC -> True) -> return mempty
Expand Down

0 comments on commit 78ebdf5

Please sign in to comment.