Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
7c45e18e
Commit
7c45e18e
authored
Jan 13, 2015
by
Andrey Mokhov
Browse files
Optimise buildPackageDependencies rule.
parent
4fcb4718
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Package/Dependencies.hs
View file @
7c45e18e
...
...
@@ -14,10 +14,13 @@ buildPackageDependencies (Package name path _) (stage, dist, settings) =
<>
packageArgs
stage
pkgData
<>
includeArgs
path
dist
<>
productArgs
[
"-odir"
,
"-stubdir"
]
buildDir
<>
arg
[
"-dep-makefile"
,
out
]
<>
arg
[
"-dep-makefile"
,
out
<.>
"new"
]
<>
productArgs
"-dep-suffix"
(
map
wayPrefix
<$>
ways
settings
)
<>
arg
(
pkgHsSources
path
dist
)
-- TODO: Check that skipping all _HC_OPTS is safe.
-- <> arg SrcHcOpts
-- TODO: i) is this needed? ii) shall we run GHC -M multiple times?
-- <> wayHcOpts vanilla
-- Avoid rebuilding dependecies of out if it hasn't changed:
copyFileChanged
(
out
<.>
"new"
)
out
removeFilesAfter
"."
[
out
<.>
"new"
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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