Print warnings after doMkDependHS
authorIan Lynagh <igloo@earth.li>
Mon, 12 Oct 2009 13:26:11 +0000 (13:26 +0000)
committerIan Lynagh <igloo@earth.li>
Mon, 12 Oct 2009 13:26:11 +0000 (13:26 +0000)
We weren't printing any warning for a commandline like
    ghc -M Foo.hs -optdep--exclude-module=Bar -fffi
but the last 2 flags are both deprecated.

ghc/Main.hs

index 5a2ebc9..2a9742d 100644 (file)
@@ -208,7 +208,8 @@ main' postLoadMode dflags0 args flagWarnings = do
     case postLoadMode of
        ShowInterface f        -> liftIO $ doShowIface dflags3 f
        DoMake                 -> doMake srcs
-       DoMkDependHS           -> doMkDependHS (map fst srcs)
+       DoMkDependHS           -> do doMkDependHS (map fst srcs)
+                                    GHC.printWarnings
        StopBefore p           -> oneShot hsc_env p srcs >> GHC.printWarnings
        DoInteractive          -> interactiveUI srcs Nothing
        DoEval exprs           -> interactiveUI srcs $ Just $ reverse exprs