forked from commercialhaskell/stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support .buildinfo files in stack ghci.
`Distribution.Simple` based `Setup.hs` sometimes create `<package>.buildinfo` files as an artifact of the configure phase. This is the case in particular when using the autoconf hooks. Since this is an internal detail private to any given package's `Setup.hs`, Stack shouldn't (and doesn't) need to care or be aware of this. But `stack ghci` does, since in that use case we're not using Cabal to build - we're taking care of the build ourselves. In particular, ignoring the `<package.buildinfo` file can mean that a successful build using `stack build` can't be replicated using `stack ghci`. E.g. in the case of the `network` package, the set of C files to build is decided at configure time, based on the current platform. So the `c-files` stanza in the .cabal file is not complete. This in turn means `stack ghci` isn't aware of all object files it has to link in, leading to obscure link errors (see commercialhaskell#1239). See [1] for more on .buildinfo files. Fixes commercialhaskell#2239. [1]: https://www.haskell.org/cabal/users-guide/developing-packages.html#system-dependent-parameters
- Loading branch information
Showing
2 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters