Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
Cabal
Commits
ca898191
Commit
ca898191
authored
8 years ago
by
Edward Z. Yang
Browse files
Options
Downloads
Patches
Plain Diff
Minor fixup for computeComputeId.
Signed-off-by:
Edward Z. Yang
<
ezyang@cs.stanford.edu
>
parent
ceb95b6f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cabal-install/Distribution/Client/Install.hs
+7
-4
7 additions, 4 deletions
cabal-install/Distribution/Client/Install.hs
with
7 additions
and
4 deletions
cabal-install/Distribution/Client/Install.hs
+
7
−
4
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment