projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b0ccf5
)
give a more useful message when the static flags have not been initialised (#1938)
author
Simon Marlow
<simonmar@microsoft.com>
Tue, 27 Nov 2007 13:54:35 +0000
(13:54 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Tue, 27 Nov 2007 13:54:35 +0000
(13:54 +0000)
compiler/main/StaticFlags.hs
patch
|
blob
|
history
diff --git
a/compiler/main/StaticFlags.hs
b/compiler/main/StaticFlags.hs
index
039051b
..
31b9414
100644
(file)
--- a/
compiler/main/StaticFlags.hs
+++ b/
compiler/main/StaticFlags.hs
@@
-226,7
+226,7
@@
GLOBAL_VAR(v_opt_C_ready, False, Bool)
staticFlags = unsafePerformIO $ do
ready <- readIORef v_opt_C_ready
if (not ready)
- then panic "a static opt was looked at too early!"
+ then panic "Static flags have not been initialised!\n Please call GHC.newSession or GHC.parseStaticFlags early enough."
else readIORef v_opt_C
-- -static is the default