<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/81affed9b91b427c40962fca58e0c23b8b62da3f">https://github.com/macports/macports-ports/commit/81affed9b91b427c40962fca58e0c23b8b62da3f</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 81affed9b91b427c40962fca58e0c23b8b62da3f
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Wed Mar 24 08:45:01 2021 +0000
<span style='display:block; white-space:pre;color:#404040;'> bazel PG: Add option to control running the post build clean up
</span>---
_resources/port1.0/group/bazel-1.0.tcl | 7 ++++++-
1 file changed, 6 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 d391add6e82..f644757932e 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;'>@@ -43,6 +43,9 @@ default bazel.extra_build_opts ""
</span> options bazel.define_build_phase
default bazel.define_build_phase yes
<span style='display:block; white-space:pre;background:#e0ffe0;'>+options bazel.clean_post_build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default bazel.clean_post_build yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> proc bazel::use_mp_clang {} {
global configure.compiler xcodeversion
return [ expr ( [ string match macports-clang-* ${configure.compiler} ] || [ vercmp ${xcodeversion} [option bazel.min_xcode] ] < 0 ) ]
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -249,5 +252,7 @@ post-build {
</span> # Post build command
system -W ${worksrcpath} "[option bazel.post_build_cmd]"
# Clean up
<span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${worksrcpath} "${build.cmd} clean"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { [option bazel.clean_post_build] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath} "${build.cmd} clean"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
</pre><pre style='margin:0'>
</pre>