Seed unsafeGlobalDynFlags with enough information to use ppr
At the moment the pretty-printer isn't functional if used before DynFlags
is initialized by initGhcMonad
. In particular things like pprPanic
aren't usable since unsafeGlobalDynFlags
isn't yet initialized. This is quite annoying during development.
It seems like it should be possible to seed unsafeGlobalDynFlags
with some minimal DynFlags
, presumably with rather verbose output (as this is presumably what you want when debugging a compiler crash early in startup).
Trac metadata
Trac field | Value |
---|---|
Version | 7.10.3 |
Type | Task |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |