<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/1c08ac5c40d4787718cc8f6abd2c3b4f7dc72508">https://github.com/macports/macports-ports/commit/1c08ac5c40d4787718cc8f6abd2c3b4f7dc72508</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new 1c08ac5c40d bazel PG: Make max CPU and RAM fractions configurable options
</span>1c08ac5c40d is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 1c08ac5c40d4787718cc8f6abd2c3b4f7dc72508
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Tue Mar 23 16:13:03 2021 +0000

<span style='display:block; white-space:pre;color:#404040;'>    bazel PG: Make max CPU and RAM fractions configurable options
</span>---
 _resources/port1.0/group/bazel-1.0.tcl | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/bazel-1.0.tcl b/_resources/port1.0/group/bazel-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index cf46f770fc4..69b45387fe1 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/bazel-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/bazel-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -28,6 +28,12 @@ default bazel.version "latest"
</span> options bazel.max_idle_secs
 default bazel.max_idle_secs 60
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+options bazel.max_cpu_fraction
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default bazel.max_cpu_fraction 0.5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+options bazel.max_ram_fraction
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default bazel.max_ram_fraction 0.5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> options bazel.extra_build_opts
 default bazel.extra_build_opts ""
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -170,7 +176,7 @@ proc bazel::get_opts {} {
</span>     # Bazel build options
     set bazel_build_opts "-s -c opt --verbose_failures --config=opt"
     # Limit bazel resource utilisation
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    set bazel_build_opts "${bazel_build_opts} --jobs ${build.jobs} --local_ram_resources=HOST_RAM*0.5 --local_cpu_resources=HOST_CPUS*.5"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    set bazel_build_opts "${bazel_build_opts} --jobs ${build.jobs} --local_ram_resources=HOST_RAM*[option bazel.max_ram_fraction] --local_cpu_resources=HOST_CPUS[option bazel.max_cpu_fraction]"
</span>     # Extra user defined build options
     set bazel_build_opts "${bazel_build_opts} [option bazel.extra_build_opts]"
     # hack to try and transfer MP c, c++ and ld options to bazel...
</pre><pre style='margin:0'>

</pre>