Ticket #7463 (new bug)
[PATCH] When -keep-hc-files is enabled, foreign stubs *_stub.c should also be kept.
|Reported by:||PHO||Owned by:||igloo|
|Type of failure:||Other||Difficulty:||Unknown|
|Test Case:||Blocked By:|
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 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 the documentation about foreign stubs is slightly outdated.