From: Ian Lynagh Date: Mon, 17 Jan 2011 18:48:33 +0000 (+0000) Subject: ghc-cabal now adds the language flag being used X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=843b4bb61822eab5c3649da61c3417d0ec6caf52 ghc-cabal now adds the language flag being used This means we get -XHaskell98 added to the list of flags, just like we would if we were building with Cabal. --- diff --git a/utils/ghc-cabal/Main.hs b/utils/ghc-cabal/Main.hs index 23d04cc..9cb9928 100644 --- 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),