Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
a200038f
Commit
a200038f
authored
Sep 14, 2008
by
Thomas Schilling
Browse files
Document 'parseStaticFlags'.
parent
825d76ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/main/StaticFlagParser.hs
View file @
a200038f
...
...
@@ -28,6 +28,21 @@ import Data.List
-----------------------------------------------------------------------------
-- Static flags
-- | Parses GHC's static flags from a list of command line arguments.
--
-- These flags are static in the sense that they can be set only once and they
-- are global, meaning that they affect every instance of GHC running;
-- multiple GHC threads will use the same flags.
--
-- This function must be called before any session is started, i.e., before
-- the first call to 'GHC.withGhc'.
--
-- Static flags are more of a hack and are static for more or less historical
-- reasons. In the long run, most static flags should eventually become
-- dynamic flags.
--
-- XXX: can we add an auto-generated list of static flags here?
--
parseStaticFlags
::
[
Located
String
]
->
IO
([
Located
String
],
[
Located
String
])
parseStaticFlags
args
=
do
ready
<-
readIORef
v_opt_C_ready
...
...
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