Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
a6d4d67e
Commit
a6d4d67e
authored
Nov 27, 2007
by
Simon Marlow
Browse files
give a more useful message when the static flags have not been initialised (#1938)
parent
4b0ccf51
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/main/StaticFlags.hs
View file @
a6d4d67e
...
...
@@ -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 s
tatic
opt was looked at too early!
"
then
panic
"
S
tatic
flags have not been initialised!
\n
Please call GHC.newSession or GHC.parseStaticFlags early enough.
"
else
readIORef
v_opt_C
-- -static is the default
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment