From f0c988e836080ee2340e2fd44b9720461cd9a5cd Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 12 Apr 2016 16:44:42 -0700 Subject: [PATCH] make -j -> make -j${ncpus} --- Gruntfile.coffee | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 0bb515117..db6ff1457 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -1,4 +1,5 @@ path = require 'path' +os = require 'os' module.exports = (grunt) -> grunt.util.linefeed = '\n' @@ -14,6 +15,7 @@ module.exports = (grunt) -> pkg: loadPkg() BIN: ['node_modules', '.bin', ''].join(path.sep) + ncpus: os.cpus().length shell: options: @@ -21,11 +23,11 @@ module.exports = (grunt) -> stderr: true failOnError: true build: - command: 'make -j' + command: 'make -j<%= ncpus %>' full: command: """ make cleanall - make -j all + make -j<%= ncpus %> all """.split('\n').join('&&') clean: command: 'make clean'