Commit 13d735f2 authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Drop ghc-cabal resource.

See #200.
parent 9129e8bc
......@@ -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
......
......@@ -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
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