<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/6cf2dac4dc6529ab56968bc8afa0509e16d404fa">https://github.com/macports/macports-ports/commit/6cf2dac4dc6529ab56968bc8afa0509e16d404fa</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 6cf2dac4dc6 golang PG: Add back check for legacysupport when redefining compwrap flags
</span>6cf2dac4dc6 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 6cf2dac4dc6529ab56968bc8afa0509e16d404fa
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Thu May 6 19:30:46 2021 +0100

<span style='display:block; white-space:pre;color:#404040;'>    golang PG: Add back check for legacysupport when redefining compwrap flags
</span>---
 _resources/port1.0/group/golang-1.0.tcl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/golang-1.0.tcl b/_resources/port1.0/group/golang-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 04d24b12301..add5de51e64 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/golang-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/golang-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -172,7 +172,7 @@ proc go.append_env {} {
</span>     global os.major build.env workpath
     # Create a wrapper scripts around compiler commands to enforce use of MacPorts flags
     # and to aid use of MacPorts legacysupport library as required.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    #if { ${os.major} <= [option legacysupport.newest_darwin_requires_legacy] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    if { ${os.major} <= [option legacysupport.newest_darwin_requires_legacy] } {
</span>         # Note, go annoyingly uses CC for both building and linking, and thus in order to get it to correctly
         # link to the legacy support library, the ldflags need to be added to the cc and ccx wrappers.
         # To then prevent 'clang linker input unused' errors we must append -Wno-error at the end.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -180,7 +180,7 @@ proc go.append_env {} {
</span>         compwrap.compiler_args_forward \$\{\@\//-static/\}
         compwrap.compiler_pre_flags    ${configure.ldflags}
         compwrap.compiler_post_flags   -Wno-error
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    #}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    }
</span>     post-extract {
         build.env-append \
             "CC=[compwrap::create_wrapper cc]" \
</pre><pre style='margin:0'>

</pre>