How does TH know to load non-profiled object code when compiling profiled?

Simon Marlow marlowsd at gmail.com
Thu Jan 7 17:42:27 UTC 2016


On 07/01/2016 16:28, Edward Z. Yang wrote:
> I've been looking for the code that implements this logic, but I can't
> seem to find it.  (For what it's worth, compiler plugins *incorrectly*
> load the profiling interface when compiling profiled, which is wrong
> and something I'd like to fix.)  Simon Marlow, do you happen to know?

Yeah, I've been fiddling with this lately.  It's this function here: 
https://phabricator.haskell.org/diffusion/GHC/browse/master/compiler/ghci/Linker.hs;c78fedde7055490ca6f6210ada797190f3c35d87$520-539

Cheers,
Simon


More information about the ghc-devs mailing list