[GHC] #8812: Make *_stub.c files available again

GHC ghc-devs at haskell.org
Thu Feb 20 15:04:51 UTC 2014


#8812: Make *_stub.c files available again
------------------------------------+-------------------------------------
       Reporter:  ralphb            |             Owner:
           Type:  feature request   |            Status:  new
       Priority:  normal            |         Milestone:
      Component:  Compiler          |           Version:  7.6.3
       Keywords:                    |  Operating System:  Unknown/Multiple
   Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
     Difficulty:  Unknown           |         Test Case:
     Blocked By:                    |          Blocking:
Related Tickets:                    |
------------------------------------+-------------------------------------
 In our project we would like to link Haskell functions into C++ code.  In
 principle this works fine using FFI.

 An additional constraint, however, is that we need to generate and link
 the object files ourselves.  Alas, ghc no longer keeps the *_stub.c files
 around.  (And fishing for files in /tmp is not a viable solution.)

 I would like to propose an additional command line switch to keep *_stub.c
 files, as previous compiler versions did by default.

 (Note that there is an older, similar request #7463, but our use case is
 much broader than that and not limited to unregistered compilation.)

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8812>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list