Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
99768c7c
Commit
99768c7c
authored
Oct 26, 2010
by
Ian Lynagh
Browse files
Add NoFoo form to the extensions list that dummy-ghc generates
parent
b284d370
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/ghc-cabal/ghc.mk
View file @
99768c7c
...
...
@@ -79,12 +79,12 @@ $(GHC_CABAL_DIR)/dist-dummy-ghc/build/dummy-ghc.hs : $(GHC_CABAL_DIR)/ghc.mk $(M
# line of compiler/main/DynFlags.hs, and if they look like
# ( "PostfixOperators", ...
# then it translates them into
# ["PostfixOperators"] ++
# ["PostfixOperators"
, "NoPostfixOperators"
] ++
# Tabs are a pain to handle portably with sed, so rather than worrying
# about them we just use tr to remove them all before we start.
echo 'extensions
::
[String]' >> $@
echo
'extensions ='
>>
$@
'
$(TR)
'
-d
'\t'
< compiler/main/DynFlags.hs |
'
$(SED)
'
'/^xFlags/,/]/s/^ *( *\(
"
[^"]*
"
\)[^"]*/ [\1] ++/p;d'
>>
$@
'
$(TR)
'
-d
'\t'
< compiler/main/DynFlags.hs |
'
$(SED)
'
'/^xFlags/,/]/s/^ *( *
"
\([^"]*\)
"
[^"]*/ [
"
\1
", "No\1"
] ++/p;d'
>>
$@
echo
' []'
>>
$@
# We don't build dummy-ghc with Cabal, so we need to pass -package
...
...
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