Make.hs 481 Bytes
Newer Older
1 2
module Settings.Builders.Make (makeBuilderArgs) where

3
import Base
4
import Predicate
Andrey Mokhov's avatar
Andrey Mokhov committed
5
import Settings.Paths
6 7

makeBuilderArgs :: Args
8 9
makeBuilderArgs = do
    threads <- shakeThreads <$> lift getShakeOptions
Andrey Mokhov's avatar
Andrey Mokhov committed
10
    let t = show threads
11
    mconcat
Andrey Mokhov's avatar
Andrey Mokhov committed
12 13 14
        [ builder (Make gmpBuildPath     ) ? append ["MAKEFLAGS=-j" ++ t]
        , builder (Make libffiBuildPath  ) ? append ["MAKEFLAGS=-j" ++ t, "install"]
        , builder (Make "testsuite/tests") ? append ["THREADS=" ++ t, "fast"] ]