From 30ee6ff795f017c433f27b37f290b29374545cec Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 23 Nov 2005 12:27:43 +0000 Subject: [PATCH] [project @ 2005-11-23 12:27:43 by simonmar] report the correct version number in the "compiled by GHC version.." message in a bootstrapped compiler. --- ghc/compiler/main/Main.hs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ghc/compiler/main/Main.hs b/ghc/compiler/main/Main.hs index 95891f7..37ce970 100644 --- a/ghc/compiler/main/Main.hs +++ b/ghc/compiler/main/Main.hs @@ -405,7 +405,12 @@ showBanner cli_mode dflags = do do hPutStr stderr "Glasgow Haskell Compiler, Version " hPutStr stderr cProjectVersion hPutStr stderr ", for Haskell 98, compiled by GHC version " +#ifdef GHCI + -- GHCI is only set when we are bootstrapping... + hPutStrLn stderr cProjectVersion +#else hPutStrLn stderr cBooterVersion +#endif showVersion :: IO () showVersion = do -- 1.7.10.4