Make initGhcMonad call setUnsafeGlobalDynFlags
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 10 Jan 2014 18:16:34 +0000 (18:16 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 10 Jan 2014 18:16:52 +0000 (18:16 +0000)
commitb7ddf6337760c65f22110937da09cd169cd3e8b3
treed1ee9805916ded298220c0b7cd0ae592020634a9
parent08a3536e4246e323fbcd8040e0b80001950fe9bc
Make initGhcMonad call setUnsafeGlobalDynFlags

If we don't do this, then in various GHC API scenarios
(which use runGhc) with tracing/debugging/ASSERTs on,
we try to read those unsafe global dynamic flags and
find them uninitialised.
compiler/main/GHC.hs