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
GHC
Commits
13d735f2
Commit
13d735f2
authored
Feb 03, 2016
by
Andrey Mokhov
Browse files
Drop ghc-cabal resource.
See
#200
.
parent
9129e8bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Rules/Data.hs
View file @
13d735f2
...
...
@@ -41,8 +41,7 @@ buildPackageData rs target @ (PartialTarget stage pkg) = do
let
inTreeMk
=
oldPath
-/-
takeFileName
dataFile
need
[
cabalFile
]
buildWithResources
[(
resGhcCabal
rs
,
1
)]
$
fullTarget
target
GhcCabal
[
cabalFile
]
[
inTreeMk
]
build
$
fullTarget
target
GhcCabal
[
cabalFile
]
[
inTreeMk
]
-- TODO: get rid of this, see #113
liftIO
$
IO
.
copyFile
inTreeMk
dataFile
...
...
src/Rules/Resources.hs
View file @
13d735f2
...
...
@@ -4,13 +4,9 @@ import Base
data
Resources
=
Resources
{
resGhcCabal
::
Resource
,
resGhcPkg
::
Resource
resGhcPkg
::
Resource
}
-- Unfortunately parallel invokations of ghc-cabal or ghc-pkg do not work:
-- * https://mail.haskell.org/pipermail/ghc-commits/2013-May/001712.html
-- * ghc.mk: see comment about parallel ghc-pkg invokations
-- We cannot register multiple packages in parallel:
resourceRules
::
Rules
Resources
resourceRules
=
liftM2
Resources
(
newResource
"ghc-cabal"
1
)
(
newResource
"ghc-pkg"
1
)
resourceRules
=
Resources
<$>
newResource
"ghc-pkg"
1
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