Skip to content

Commit

Permalink
Rakefile: use Etc.nprocessors
Browse files Browse the repository at this point in the history
Signed-off-by: Shizuo Fujita <[email protected]>
  • Loading branch information
Watson1978 authored and kenhys committed Aug 22, 2024
1 parent 505509f commit 75605d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fluent-package/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ class BuildTask
gem_home = ENV["GEM_HOME"]
ENV["GEM_HOME"] = gem_staging_dir
ENV["INSTALL_GEM_FROM_LOCAL_REPO"] = "yes"
sh(bundle_command, "_#{BUNDLER_VERSION}_", "install", "-j4")
sh(bundle_command, "_#{BUNDLER_VERSION}_", "install", "-j#{Etc.nprocessors}")
# Ensure to install binstubs under /opt/td-agent/bin
sh(gem_command, "pristine", "--only-executables", "--all", "--bindir", staging_bindir)
ENV["GEM_HOME"] = gem_home
Expand Down

0 comments on commit 75605d8

Please sign in to comment.