<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/2c4d5b80c765202da0f3f599e08f9937d9b7b7ff">https://github.com/macports/macports-ports/commit/2c4d5b80c765202da0f3f599e08f9937d9b7b7ff</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 2c4d5b80c76 zig: use ld_classic for Xcode 15
</span>2c4d5b80c76 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 2c4d5b80c765202da0f3f599e08f9937d9b7b7ff
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Fri Apr 19 13:17:29 2024 -0400
<span style='display:block; white-space:pre;color:#404040;'> zig: use ld_classic for Xcode 15
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/68281
</span>---
lang/zig/Portfile | 11 +++++++++++
1 file changed, 11 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/zig/Portfile b/lang/zig/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index d475a9ddef1..8ccdfd35e90 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/zig/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/zig/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -43,3 +43,14 @@ compiler.whitelist macports-clang-${llvm_version}
</span> cmake.module_path ${prefix}/libexec/llvm-${llvm_version} \
${prefix}
cmake_share_module_dir ${prefix}/libexec/llvm-${llvm_version}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platform darwin {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # due to the new linker (which was introduced in Xcode 15: https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # this port requires '-ld_classic' to build successfully with the toolchains from Xcode 15 or Command Line Tools 15.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # TODO: This is a temporary solution, the classic linker will be removed in a future release by Apple.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ( [vercmp ${xcodeversion} 15 ] >= 0 ) || ( [vercmp ${xcodecltversion} 15 ] >= 0 ) } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ldflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -Wl,-ld_classic
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>
</pre>