Commit 703429d9 authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Limit Make's thread

See #289.
parent 9233793b
......@@ -7,7 +7,7 @@ import Settings.Paths
makeBuilderArgs :: Args
makeBuilderArgs = do
threads <- shakeThreads <$> lift getShakeOptions
let t = show threads
let t = show $ max 4 (threads - 2) -- Don't use all Shake's threads
mconcat
[ builder (Make gmpBuildPath ) ? append ["MAKEFLAGS=-j" ++ t]
, builder (Make libffiBuildPath ) ? append ["MAKEFLAGS=-j" ++ t, "install"]
......
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