[commit: packages/Cabal] ghc-head: Comment. (7a973e5)
git at git.haskell.org
git at git.haskell.org
Mon Aug 26 23:31:25 CEST 2013
Repository : ssh://git@git.haskell.org/Cabal
On branch : ghc-head
Link : http://git.haskell.org/?p=packages/Cabal.git;a=commit;h=7a973e541f33a542ab229e6812d5da64ff329642
>---------------------------------------------------------------
commit 7a973e541f33a542ab229e6812d5da64ff329642
Author: Mikhail Glushenkov <mikhail.glushenkov at gmail.com>
Date: Sun Aug 25 02:07:48 2013 +0200
Comment.
>---------------------------------------------------------------
7a973e541f33a542ab229e6812d5da64ff329642
Cabal/Distribution/Simple/GHC.hs | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Cabal/Distribution/Simple/GHC.hs b/Cabal/Distribution/Simple/GHC.hs
index 75ad3bd..2a00c97 100644
--- a/Cabal/Distribution/Simple/GHC.hs
+++ b/Cabal/Distribution/Simple/GHC.hs
@@ -973,6 +973,11 @@ buildOrReplExe forRepl verbosity _pkg_descr lbi
ghcOptExtra = filterGhciFlags
(ghcOptExtra baseOpts)
}
+ -- For a normal compile we do separate invocations of ghc for
+ -- compiling as for linking. But for repl we have to do just
+ -- the one invocation, so that one has to include all the
+ -- linker stuff too, like -l flags and any .o files from C
+ -- files etc.
`mappend` linkerOpts
`mappend` mempty {
ghcOptMode = toFlag GhcModeInteractive,
More information about the ghc-commits
mailing list