Fix #8754 in a round-about way.
authorAustin Seipp <austin@well-typed.com>
Mon, 17 Feb 2014 01:10:16 +0000 (19:10 -0600)
committerAustin Seipp <austin@well-typed.com>
Mon, 17 Feb 2014 07:46:04 +0000 (01:46 -0600)
commit5023c91780e90947680fe0640f7564a4f6448bea
tree54cd9afbc9cc7ada073cecf969844862b20394ba
parentc83eabf37b884398d911609e46707df771c3fde9
Fix #8754 in a round-about way.

For some reason on OS X, it seems like -Bsymbolic (which we use for
hooks into the RTS) isn't working, which results in #8754, where stats
don't work because defaultHooks doesn't initialize the stats flag. This
seems to work on Linux static/dynamically, but only on OS X statically.

After talking with Simon, really, the entire hooks thing is a bit
fragile. For now, we just work around it (since GHCi is dynamically
linked) by calling into the defaultHooks ourselves when GHC starts.

Signed-off-by: Austin Seipp <austin@well-typed.com>
ghc/Main.hs