[GHC] #7463: [PATCH] When -keep-hc-files is enabled, foreign stubs *_stub.c should also be kept.
GHC
cvs-ghc at haskell.org
Fri Nov 30 05:24:43 CET 2012
#7463: [PATCH] When -keep-hc-files is enabled, foreign stubs *_stub.c should also
be kept.
-----------------------------+----------------------------------------------
Reporter: PHO | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.6.1 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: Other | Blockedby:
Blocking: 3472 | Related:
-----------------------------+----------------------------------------------
GHC used to put `*_stub.c` into `stubdir` along with `*_stub.h` but now
`*_stub.c` files are temporarily created and then removed, which means we
have no stubs available when we are bootstrapping a compiler via C
sources.
My
[https://github.com/phonohawk/ghc/commit/680f44a4d325075cd26e9dd4c2fca1ee837847fe
patch] is to keep `*_stub.c` as before, when `-keep-hc-files` is enabled:
{{{
% git fetch git://github.com/phonohawk/ghc.git c-sources-in-stubdir
}}}
Please also note that
[http://www.haskell.org/ghc/docs/latest/html/users_guide/ffi-ghc.html
#foreign-export-ghc the documentation about foreign stubs] is slightly
outdated.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7463>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list