diff options
| author | simonmar <unknown> | 2005-11-23 12:27:43 +0000 |
|---|---|---|
| committer | simonmar <unknown> | 2005-11-23 12:27:43 +0000 |
| commit | 30ee6ff795f017c433f27b37f290b29374545cec (patch) | |
| tree | b092423898e02a9b79987c8b86cc1a6e4e580b7b /ghc | |
| parent | c4aefec7092fcd183f63d3990147c03bfa6c180f (diff) | |
| download | haskell-30ee6ff795f017c433f27b37f290b29374545cec.tar.gz | |
[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.
Diffstat (limited to 'ghc')
| -rw-r--r-- | ghc/compiler/main/Main.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ghc/compiler/main/Main.hs b/ghc/compiler/main/Main.hs index 95891f76ef..37ce970c6f 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 |
