summaryrefslogtreecommitdiff
path: root/ghc
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-04-22 00:21:23 +0100
committerIan Lynagh <igloo@earth.li>2011-04-22 00:51:47 +0100
commitbfa0c2ed1e4cd07c7934901520cb04db6b79cd9d (patch)
treeb89d0ecd4d0546273b3d4732c5eb2f69e4f1f60d /ghc
parente550494a8e6d28274fa124bdb10d4c7f40fe074b (diff)
downloadhaskell-bfa0c2ed1e4cd07c7934901520cb04db6b79cd9d.tar.gz
Initialise Settings before DynFlags
Stops us having to temporarily have a panic in the DynFlags. We still need a panic in the DynFlags used for the top-level error handler, though.
Diffstat (limited to 'ghc')
-rw-r--r--ghc/Main.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ghc/Main.hs b/ghc/Main.hs
index 15327f81bc..12d8dd202b 100644
--- a/ghc/Main.hs
+++ b/ghc/Main.hs
@@ -78,7 +78,8 @@ import Data.Maybe
main :: IO ()
main = do
hSetBuffering stdout NoBuffering
- GHC.defaultErrorHandler defaultDynFlags $ do
+ let defaultErrorHandlerDynFlags = defaultDynFlags (panic "No settings")
+ GHC.defaultErrorHandler defaultErrorHandlerDynFlags $ do
-- 1. extract the -B flag from the args
argv0 <- getArgs