[project @ 2005-11-23 12:27:43 by simonmar]
authorsimonmar <unknown>
Wed, 23 Nov 2005 12:27:43 +0000 (12:27 +0000)
committersimonmar <unknown>
Wed, 23 Nov 2005 12:27:43 +0000 (12:27 +0000)
report the correct version number in the "compiled by GHC version.."
message in a bootstrapped compiler.

ghc/compiler/main/Main.hs

index 95891f7..37ce970 100644 (file)
@@ -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 "
        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
           hPutStrLn stderr cBooterVersion
+#endif
 
 showVersion :: IO ()
 showVersion = do
 
 showVersion :: IO ()
 showVersion = do