Skip to content

Commit

Permalink
Always run make with the -j,--jobs flag (closes #487).
Browse files Browse the repository at this point in the history
* Use the `ruby-install` `-j,--jobs` option value or default to the
  number of CPU cores.
  • Loading branch information
postmodern committed Feb 4, 2025
1 parent 8e31438 commit 93584af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion share/ruby-install/mruby/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function clean_ruby()
function compile_ruby()
{
log "Compiling mruby $ruby_version ..."
run make ${make_jobs:+-j $make_jobs} || return $?
run make -j "${make_jobs:-$(cpu_count)}" || return $?
}

#
Expand Down
2 changes: 1 addition & 1 deletion share/ruby-install/ruby/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function clean_ruby()
function compile_ruby()
{
log "Compiling ruby $ruby_version ..."
run make ${make_jobs:+-j $make_jobs} || return $?
run make -j "${make_jobs:-$(cpu_count)}" || return $?
}

#
Expand Down

0 comments on commit 93584af

Please sign in to comment.