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:
2793499
)
ghc-cabal now adds the language flag being used
author
Ian Lynagh
<igloo@earth.li>
Mon, 17 Jan 2011 18:48:33 +0000
(18:48 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Mon, 17 Jan 2011 18:48:33 +0000
(18:48 +0000)
This means we get -XHaskell98 added to the list of flags, just like we
would if we were building with Cabal.
utils/ghc-cabal/Main.hs
patch
|
blob
|
history
diff --git
a/utils/ghc-cabal/Main.hs
b/utils/ghc-cabal/Main.hs
index
23d04cc
..
9cb9928
100644
(file)
--- a/
utils/ghc-cabal/Main.hs
+++ b/
utils/ghc-cabal/Main.hs
@@
-365,6
+365,7
@@
generate config_args distdir directory
variablePrefix ++ "_HC_OPTS = " ++ escape (unwords
( programDefaultArgs ghcProg
++ hcOptions GHC bi
+ ++ languageToFlags (compiler lbi) (defaultLanguage bi)
++ extensionsToFlags (compiler lbi) (usedExtensions bi)
++ programOverrideArgs ghcProg)),
variablePrefix ++ "_CC_OPTS = " ++ unwords (ccOptions bi),