Make *_stub.c files available again
|Reported by:||ralphb||Owned by:|
|Type of failure:||None/Unknown||Test Case:|
|Related Tickets:||Differential Rev(s):|
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, but our use case is much broader than that and not limited to unregistered compilation.)