Skip to content

Commit 93584af

Browse files
committed
Always run make with the -j,--jobs flag (closes #487).
* Use the `ruby-install` `-j,--jobs` option value or default to the number of CPU cores.
1 parent 8e31438 commit 93584af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

share/ruby-install/mruby/functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function clean_ruby()
2020
function compile_ruby()
2121
{
2222
log "Compiling mruby $ruby_version ..."
23-
run make ${make_jobs:+-j $make_jobs} || return $?
23+
run make -j "${make_jobs:-$(cpu_count)}" || return $?
2424
}
2525

2626
#

share/ruby-install/ruby/functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function clean_ruby()
5959
function compile_ruby()
6060
{
6161
log "Compiling ruby $ruby_version ..."
62-
run make ${make_jobs:+-j $make_jobs} || return $?
62+
run make -j "${make_jobs:-$(cpu_count)}" || return $?
6363
}
6464

6565
#

0 commit comments

Comments
 (0)