Commit b2193187 authored by Edward Z. Yang's avatar Edward Z. Yang Committed by Edward Z. Yang
Browse files

Do not compute ABI hash for inplace installation.



Fixes #4214.
Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent 2a8e8535
......@@ -221,20 +221,23 @@ generateRegistrationInfo verbosity pkg lib lbi clbi inplace reloc distPref packa
--TODO: eliminate pwd!
pwd <- getCurrentDirectory
abi_hash <- abiHash verbosity pkg distPref lbi lib clbi
installedPkgInfo <-
if inplace
-- NB: With an inplace installation, the user may run './Setup
-- build' to update the library files, without reregistering.
-- In this case, it is critical that the ABI hash not flip.
then return (inplaceInstalledPackageInfo pwd distPref
pkg abi_hash lib lbi clbi)
else if reloc
pkg (mkAbiHash "inplace") lib lbi clbi)
else do
abi_hash <- abiHash verbosity pkg distPref lbi lib clbi
if reloc
then relocRegistrationInfo verbosity
pkg lib lbi clbi abi_hash packageDb
else return (absoluteInstalledPackageInfo
pkg abi_hash lib lbi clbi)
return installedPkgInfo{ IPI.abiHash = abi_hash }
return installedPkgInfo
-- | Compute the 'AbiHash' of a library that we built inplace.
abiHash :: Verbosity
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment