ghc-cabal now adds the language flag being used
authorIan Lynagh <igloo@earth.li>
Mon, 17 Jan 2011 18:48:33 +0000 (18:48 +0000)
committerIan 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

index 23d04cc..9cb9928 100644 (file)
@@ -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),