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
4a7016b7
Commit
4a7016b7
authored
Jul 22, 2016
by
Andrey Mokhov
Committed by
GitHub
Jul 22, 2016
Browse files
Merge pull request #273 from mpickering/master
Fix inability to find gmp.h when building concurrently
parents
b2fc1542
b3bcd0ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Rules/Dependencies.hs
View file @
4a7016b7
...
...
@@ -11,6 +11,8 @@ import Rules.Actions
import
Settings.Paths
import
Target
import
UserSettings
import
GHC
buildPackageDependencies
::
[(
Resource
,
Int
)]
->
Context
->
Rules
()
buildPackageDependencies
rs
context
@
Context
{
..
}
=
...
...
@@ -20,6 +22,7 @@ buildPackageDependencies rs context@Context {..} =
fmap
(
path
++
)
[
"//*.c.deps"
,
"//*.cmm.deps"
,
"//*.S.deps"
]
|%>
\
out
->
do
let
src
=
dep2src
context
out
when
(
package
==
integerGmp
)
(
need
[
gmpLibraryH
])
need
[
src
]
build
$
Target
context
(
Cc
FindDependencies
stage
)
[
src
]
[
out
]
...
...
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