From 8ee215b9aa2fe37b435e404aad8bb07c6ce1836d Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Mon, 12 Oct 2009 13:26:11 +0000 Subject: [PATCH] Print warnings after doMkDependHS 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghc/Main.hs b/ghc/Main.hs index 5a2ebc9..2a9742d 100644 --- a/ghc/Main.hs +++ b/ghc/Main.hs @@ -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 -- 1.7.10.4