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
44fd16db
Commit
44fd16db
authored
Feb 06, 2016
by
Andrey Mokhov
Browse files
Don't run GHC -M concurrently with ghc-pkg.
See
#205
.
parent
116bf853
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Rules/Dependencies.hs
View file @
44fd16db
...
...
@@ -10,7 +10,7 @@ import Development.Shake.Util (parseMakefile)
-- TODO: simplify handling of AutoApply.cmm
buildPackageDependencies
::
Resources
->
PartialTarget
->
Rules
()
buildPackageDependencies
_
target
@
(
PartialTarget
stage
pkg
)
=
buildPackageDependencies
rs
target
@
(
PartialTarget
stage
pkg
)
=
let
path
=
targetPath
stage
pkg
buildPath
=
path
-/-
"build"
dropBuild
=
(
pkgPath
pkg
++
)
.
drop
(
length
buildPath
)
...
...
@@ -29,7 +29,8 @@ buildPackageDependencies _ target @ (PartialTarget stage pkg) =
need
srcs
if
srcs
==
[]
then
writeFileChanged
out
""
else
build
$
fullTarget
target
(
GhcM
stage
)
srcs
[
out
]
else
buildWithResources
[(
resPackageDb
rs
,
1
)]
$
fullTarget
target
(
GhcM
stage
)
srcs
[
out
]
removeFileIfExists
$
out
<.>
"bak"
-- TODO: don't accumulate *.deps into .dependencies
...
...
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