afb46d728316475b18082e726a56a678b64ecff6
[ghc.git] / src / Settings / Builders / Make.hs
1 module Settings.Builders.Make (makeBuilderArgs) where
2
3 import Base
4 import Predicate
5 import Settings
6
7 makeBuilderArgs :: Args
8 makeBuilderArgs = do
9 threads <- shakeThreads <$> lift getShakeOptions
10 let j = "-j" ++ show threads
11 mconcat
12 [ builder (Make gmpBuildPath ) ? append ["MAKEFLAGS=" ++ j]
13 , builder (Make libffiBuildPath ) ? append ["MAKEFLAGS=" ++ j, "install"]
14 , builder (Make "testsuite/tests") ? append ["THREADS=" ++ show threads, "fast"] ]