Skip to content

Commit 6fbe1bf

Browse files
committed
Pass num_procs and memory options into the build script
It is useful to have the number of processors and memory available in the build script
1 parent 0ef83cf commit 6fbe1bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/gbuild

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ EOF"
156156
script.puts "GBUILD_COMMON_CACHE=$HOME/cache/common"
157157
end
158158
script.puts "MAKEOPTS=(-j#{@options[:num_procs]})"
159+
script.puts "NUM_PROCS=#{@options[:num_procs]}"
160+
script.puts "NUM_MEM=#{@options[:memory]}"
159161
script.puts
160162
author_date = nil
161163
build_desc["remotes"].each do |remote|

0 commit comments

Comments
 (0)