Commit 4a7016b7 authored by Andrey Mokhov's avatar Andrey Mokhov Committed by GitHub
Browse files

Merge pull request #273 from mpickering/master

Fix inability to find gmp.h when building concurrently
parents b2fc1542 b3bcd0ff
......@@ -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]
......
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