Make *_stub.c files available again
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 (closed), but our use case is much broader than that and not limited to unregistered compilation.)
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.6.3 |
| Type | FeatureRequest |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |