Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
3de1a5a6
Commit
3de1a5a6
authored
May 22, 2016
by
Andrey Mokhov
Browse files
Run Make builder with -jN using N = shakeThreads
parent
19293d92
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Settings/Builders/Make.hs
View file @
3de1a5a6
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"
]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment