<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/7d94e4a5dc17a0aaaf43669650b53909127ec5af">https://github.com/macports/macports-ports/commit/7d94e4a5dc17a0aaaf43669650b53909127ec5af</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 7d94e4a5dc1 bazel PG: Avoid calling sysctl on non-darwin platforms
</span>7d94e4a5dc1 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 7d94e4a5dc17a0aaaf43669650b53909127ec5af
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Mon Apr 26 10:49:27 2021 +0100

<span style='display:block; white-space:pre;color:#404040;'>    bazel PG: Avoid calling sysctl on non-darwin platforms
</span>---
 _resources/port1.0/group/bazel-1.0.tcl | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

<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 845107a4340..ffffa0f85f6 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;'>@@ -218,6 +218,7 @@ proc bazel::get_cmd_opts {} {
</span> proc bazel::get_build_opts {} {
     global build.jobs configure.cc configure.cxx configure.cflags configure.cxxflags configure.ldflags
     global configure.sdk_version use_parallel_build bazel.limit_build_jobs
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    global os.platform
</span>     # Bazel build options
     # See https://docs.bazel.build/versions/master/memory-saving-mode.html 
     set bazel_build_opts "--subcommands --compilation_mode=opt --verbose_failures --nouse_action_cache --discard_analysis_cache --notrack_incremental_state --nokeep_state_after_build "
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -229,9 +230,11 @@ proc bazel::get_build_opts {} {
</span>     if { [option bazel.limit_build_jobs] } {
         # Limit the number of parallel jobs to the number of physical, not logical, cpus.
         # First current setting to ensure we would be reducing the current setting.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        set physicalcpus [sysctl hw.physicalcpu]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        if { ${build.jobs} > ${physicalcpus} } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            build.jobs ${physicalcpus}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        if { ${os.platform} eq "darwin" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            set physicalcpus [sysctl hw.physicalcpu]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            if { ${build.jobs} > ${physicalcpus} } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                build.jobs ${physicalcpus}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            }
</span>         }
         set bazel_build_opts "${bazel_build_opts} --jobs ${build.jobs}"
         if { [option bazel.max_ram_fraction] > 0 } {
</pre><pre style='margin:0'>

</pre>