Don't try to do parallel builds on Windows.
This commit is contained in:
parent
f0c988e836
commit
7d6251c969
@ -15,7 +15,7 @@ module.exports = (grunt) ->
|
|||||||
pkg: loadPkg()
|
pkg: loadPkg()
|
||||||
|
|
||||||
BIN: ['node_modules', '.bin', ''].join(path.sep)
|
BIN: ['node_modules', '.bin', ''].join(path.sep)
|
||||||
ncpus: os.cpus().length
|
MAKEFLAGS: if process.platform is 'linux' then "-j#{os.cpus().length}" else ''
|
||||||
|
|
||||||
shell:
|
shell:
|
||||||
options:
|
options:
|
||||||
@ -23,11 +23,11 @@ module.exports = (grunt) ->
|
|||||||
stderr: true
|
stderr: true
|
||||||
failOnError: true
|
failOnError: true
|
||||||
build:
|
build:
|
||||||
command: 'make -j<%= ncpus %>'
|
command: 'make <%= MAKEFLAGS %>'
|
||||||
full:
|
full:
|
||||||
command: """
|
command: """
|
||||||
make cleanall
|
make cleanall
|
||||||
make -j<%= ncpus %> all
|
make <%= MAKEFLAGS %> all
|
||||||
""".split('\n').join('&&')
|
""".split('\n').join('&&')
|
||||||
clean:
|
clean:
|
||||||
command: 'make clean'
|
command: 'make clean'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user