Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tobias Decking
GHC
Commits
da9b43e1
Commit
da9b43e1
authored
Oct 23, 2006
by
Simon Marlow
Browse files
wibble in parseStaticFlags
should fix profiling and unreg in HEAD
parent
84010979
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/main/StaticFlags.hs
View file @
da9b43e1
...
...
@@ -99,14 +99,17 @@ parseStaticFlags args = do
let
unreg_flags
|
cGhcUnregisterised
==
"YES"
=
unregFlags
|
otherwise
=
[]
(
more_leftover
,
errs
)
<-
processArgs
static_flags
(
unreg_flags
++
way_flags
)
-- TABLES_NEXT_TO_CODE affects the info table layout.
-- Be careful to do this *after* all processArgs,
-- because evaluating tablesNextToCode involves looking at the global
-- static flags. Those pesky global variables...
let
cg_flags
|
tablesNextToCode
=
[
"-optc-DTABLES_NEXT_TO_CODE"
]
|
otherwise
=
[]
(
more_leftover
,
errs
)
<-
processArgs
static_flags
(
unreg_flags
++
cg_flags
++
way_flags
)
when
(
not
(
null
errs
))
$
ghcError
(
UsageError
(
unlines
errs
))
return
(
more_leftover
++
leftover
)
return
(
cg_flags
++
more_leftover
++
leftover
)
-- note that ordering is important in the following list: any flag which
...
...
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