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
b75a548a
Commit
b75a548a
authored
Jan 15, 2015
by
Andrey Mokhov
Browse files
Pass HsOpts to ghc -M.
parent
5596b041
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Package/Dependencies.hs
View file @
b75a548a
...
...
@@ -17,11 +17,8 @@ buildPackageDependencies (Package name path _) (stage, dist, settings) =
<>
productArgs
[
"-odir"
,
"-stubdir"
,
"-hidir"
]
buildDir
<>
arg
[
"-dep-makefile"
,
toStandard
$
out
<.>
"new"
]
<>
productArgs
"-dep-suffix"
(
map
wayPrefix
<$>
ways
settings
)
<>
arg
(
HsOpts
pkgData
)
<>
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:
-- Note: cannot use copyFileChanged as it depends on the source file
deps
<-
liftIO
$
readFile
$
out
<.>
"new"
...
...
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