Skip to content

Commit

Permalink
Pass num_procs and memory options into the build script
Browse files Browse the repository at this point in the history
It is useful to have the number of processors and memory available
in the build script
  • Loading branch information
achow101 committed Jul 11, 2021
1 parent 0ef83cf commit 6fbe1bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/gbuild
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ EOF"
script.puts "GBUILD_COMMON_CACHE=$HOME/cache/common"
end
script.puts "MAKEOPTS=(-j#{@options[:num_procs]})"
script.puts "NUM_PROCS=#{@options[:num_procs]}"
script.puts "NUM_MEM=#{@options[:memory]}"
script.puts
author_date = nil
build_desc["remotes"].each do |remote|
Expand Down

0 comments on commit 6fbe1bf

Please sign in to comment.