diff options
author | Simon Marlow <marlowsd@gmail.com> | 2011-07-19 15:55:40 +0100 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2011-07-20 10:48:48 +0100 |
commit | d80e66f9e838c0641fbe5a4757e9d69b1e85ff67 (patch) | |
tree | be16b3258f7b69522e330e8fe2922b896c5814ec /ghc/Main.hs | |
parent | 091807ce70dce222df78d366b291a090779a5257 (diff) | |
download | haskell-d80e66f9e838c0641fbe5a4757e9d69b1e85ff67.tar.gz |
Factor the GHC version into the hash generated by --abi-hash (#5328)
Diffstat (limited to 'ghc/Main.hs')
-rw-r--r-- | ghc/Main.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ghc/Main.hs b/ghc/Main.hs index 4a91acd3b9..8b7597cddf 100644 --- a/ghc/Main.hs +++ b/ghc/Main.hs @@ -762,6 +762,9 @@ abiHash strs = do ifaces <- initIfaceCheck hsc_env $ mapM get_iface mods bh <- openBinMem (3*1024) -- just less than a block + put_ bh opt_HiVersion + -- package hashes change when the compiler version changes (for now) + -- see #5328 mapM_ (put_ bh . mi_mod_hash) ifaces f <- fingerprintBinMem bh |