[commit: ghc] wip/nfs-locking: Depend on package configuration when compiling package sources with GHC. (83c1e5e)
git at git.haskell.org
git at git.haskell.org
Thu Oct 26 23:59:45 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/nfs-locking
Link : http://ghc.haskell.org/trac/ghc/changeset/83c1e5e78010487dbe053c39b921c917ddb7f282/ghc
>---------------------------------------------------------------
commit 83c1e5e78010487dbe053c39b921c917ddb7f282
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date: Sat Feb 6 02:39:27 2016 +0000
Depend on package configuration when compiling package sources with GHC.
See #205.
>---------------------------------------------------------------
83c1e5e78010487dbe053c39b921c917ddb7f282
src/Settings/Builders/Ghc.hs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/Settings/Builders/Ghc.hs b/src/Settings/Builders/Ghc.hs
index 74381eb..cc2afd5 100644
--- a/src/Settings/Builders/Ghc.hs
+++ b/src/Settings/Builders/Ghc.hs
@@ -103,9 +103,13 @@ wayGhcArgs = do
-- TODO: Improve handling of "-hide-all-packages"
packageGhcArgs :: Args
packageGhcArgs = do
+ stage <- getStage
pkg <- getPackage
compId <- getPkgData ComponentId
pkgDepIds <- getPkgDataList DepIds
+ lift . when (isLibrary pkg) $ do
+ conf <- pkgConfFile stage pkg
+ need [conf]
mconcat
[ arg "-hide-all-packages"
, arg "-no-user-package-db"
More information about the ghc-commits
mailing list