<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/50f26bef0b5311915282c2b377be729230ffa18c">https://github.com/macports/macports-ports/commit/50f26bef0b5311915282c2b377be729230ffa18c</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 50f26bef0b5311915282c2b377be729230ffa18c
</span>Author: Marcus Calhoun-Lopez <marcuscalhounlopez@gmail.com>
AuthorDate: Sat Apr 9 19:19:33 2022 -0700
<span style='display:block; white-space:pre;color:#404040;'> compiler_wrapper PG: create wrappers in post-extract
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This allows `compwrap::wrap_compiler` to be called
</span><span style='display:block; white-space:pre;color:#404040;'> anywhere in the Portfile.
</span>---
_resources/port1.0/group/compiler_wrapper-1.0.tcl | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/compiler_wrapper-1.0.tcl b/_resources/port1.0/group/compiler_wrapper-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 978f7b2e4d6..22accca0447 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/compiler_wrapper-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/compiler_wrapper-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -106,6 +106,21 @@ proc compwrap::wrap_compiler {tag} {
</span> return ${comp}
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ return ${wrapcomp}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach tag [option compwrap.compilers_to_wrap] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Get the underlying compiler
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set comp [option configure.${tag}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Get the wrapper path
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set wrapcomp [compwrap::wrapped_compiler_path ${tag}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ${wrapcomp} eq ${comp} } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ continue
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Create the directory for the wrapper.
set wrapdir [file dirname ${wrapcomp}]
if {![file exists ${wrapdir}]} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -176,8 +191,7 @@ proc compwrap::wrap_compiler {tag} {
</span> }
puts ${f} "exec ${comp} ${comp_opts}"
close ${f}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return ${wrapcomp}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
# Set various env vars
</pre><pre style='margin:0'>
</pre>