Commit 3de1a5a6 authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Run Make builder with -jN using N = shakeThreads

parent 19293d92
module Settings.Builders.Make (makeBuilderArgs) where
import Base
import Predicate
import Settings
makeBuilderArgs :: Args
makeBuilderArgs = mconcat
[ builder (Make gmpBuildPath ) ? arg "MAKEFLAGS="
, builder (Make libffiBuildPath ) ? append ["MAKEFLAGS=", "install"]
, builder (Make "testsuite/tests") ? arg "fast" ]
makeBuilderArgs = do
threads <- shakeThreads <$> lift getShakeOptions
let j = "-j" ++ show threads
mconcat
[ builder (Make gmpBuildPath ) ? append ["MAKEFLAGS=" ++ j]
, builder (Make libffiBuildPath ) ? append ["MAKEFLAGS=" ++ j, "install"]
, builder (Make "testsuite/tests") ? arg "fast" ]
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