
#13366: addCStub doesn't allow control over compiler flags or source file file -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: high | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari):
Perhaps a dumb question: What's wrong with using -optc?
It very well may break other stubs, who expect to be compiled with a C compiler (and therefore will break with C++ name mangling). These users include GHC itself, which uses C stubs for static pointers and profiler initialization. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13366#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler