Skip to content

[PATCH] When -keep-hc-files is enabled, foreign stubs *_stub.c should also be kept.

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.

Trac metadata
Trac field Value
Version 7.6.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information