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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.8.1 |
| Component: | Compiler | Version: | 7.6.1 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Other | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | #3472 | Related Tickets: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
