[GHC] #8052: make ghci look for the files made by -dynamic-too
GHC
ghc-devs at haskell.org
Thu Jul 11 18:41:31 CEST 2013
#8052: make ghci look for the files made by -dynamic-too
-----------------------------------+---------------------------------
Reporter: nfrisby | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 7.7
Keywords: | Operating System: MacOS X
Architecture: x86_64 (amd64) | Type of failure: None/Unknown
Difficulty: Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: |
-----------------------------------+---------------------------------
If I compile with `-dynamic-too`, ghci still re-interprets the source code
instead of finding the `Test.dyn_o` file.
{{{
$ inplace/bin/ghc-stage2 -O1 -dynamic-too -c Test.hs
$ inplace/bin/ghc-stage2 --interactive Test
GHCi, version 7.7.20130710: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
[1 of 1] Compiling Test ( Test.hs, interpreted )
Ok, modules loaded: Test.
*Test>
}}}
I'm guessing that ghci sees the `.o` file isn't suitable for dynamic
loading and then falls-back to the interpreter without first checking for
the `.dyn_o` file.
ghci loads `Test.o` as expected if I instead compile with `-dynamic`.
I'm on OS X 64-bit, if that might matter.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8052>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list