Skip to content
GitLab
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
ca898191
Commit
ca898191
authored
Apr 04, 2016
by
Edward Z. Yang
Browse files
Minor fixup for computeComputeId.
Signed-off-by:
Edward Z. Yang
<
ezyang@cs.stanford.edu
>
parent
ceb95b6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/Install.hs
View file @
ca898191
...
...
@@ -1415,12 +1415,15 @@ installUnpackedPackage verbosity buildLimit installLock numJobs
++
" with the latest revision from the index."
writeFileAtomic
descFilePath
pkgtxt
-- Compute the IPID
-- Compute the IPID
of the *library*
let
flags
(
ReadyPackage
cpkg
_
)
=
confPkgFlags
cpkg
pkg_name
=
pkgName
(
PackageDescription
.
package
pkg
)
cid
=
Configure
.
computeComponentId
Cabal
.
NoFlag
(
PackageDescription
.
package
pkg
)
(
CLibName
(
display
pkg_name
))
(
map
(
\
(
SimpleUnitId
cid0
)
->
cid0
)
(
CD
.
libraryDeps
(
depends
rpkg
)))
(
flags
rpkg
)
cid
=
Configure
.
computeComponentId
Cabal
.
NoFlag
-- This would let us override the computation
(
PackageDescription
.
package
pkg
)
(
CLibName
(
display
pkg_name
))
(
map
(
\
(
SimpleUnitId
cid0
)
->
cid0
)
(
CD
.
libraryDeps
(
depends
rpkg
)))
(
flags
rpkg
)
ipid
=
SimpleUnitId
cid
-- Make sure that we pass --libsubdir etc to 'setup configure' (necessary if
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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