Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
b2193187
Commit
b2193187
authored
Jan 06, 2017
by
Edward Z. Yang
Committed by
Edward Z. Yang
Jan 10, 2017
Browse files
Do not compute ABI hash for inplace installation.
Fixes #4214. Signed-off-by:
Edward Z. Yang
<
ezyang@cs.stanford.edu
>
parent
2a8e8535
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/Simple/Register.hs
View file @
b2193187
...
...
@@ -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
then
relocRegistrationInfo
verbosity
pkg
lib
lbi
clbi
abi_hash
packageDb
else
return
(
absoluteInstalledPackageInfo
pkg
abi_hash
lib
lbi
clbi
)
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment