<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/82fb74222b9b11ddb8301b59dc9f0df3300ec97b">https://github.com/macports/macports-ports/commit/82fb74222b9b11ddb8301b59dc9f0df3300ec97b</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 82fb74222b9 clang-devel: add libunwind to enabled runtimes
</span>82fb74222b9 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 82fb74222b9b11ddb8301b59dc9f0df3300ec97b
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Mon Mar 11 09:13:12 2024 +0000

<span style='display:block; white-space:pre;color:#404040;'>    clang-devel: add libunwind to enabled runtimes
</span>---
 lang/llvm-devel/Portfile | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-devel/Portfile b/lang/llvm-devel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ecc60e0a71a..ea706804505 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,6 +6,7 @@ PortGroup compiler_blacklist_versions 1.0
</span> PortGroup active_variants             1.1
 PortGroup cmake                       1.1
 PortGroup legacysupport               1.1
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup conflicts_build             1.0
</span> 
 # Do not propagate c/c++ standards as set by base
 cmake.set_c_standard                  no
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -58,6 +59,9 @@ set sub_prefix          ${prefix}/libexec/llvm-${llvm_version}
</span> worksrcdir              ${worksrcdir}/llvm
 patch.dir               ${workpath}/${distname}
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/macports/macports-ports/commit/a83a493bc21cbe7e14b1f5884379649ec8f31bae#commitcomment-132530885
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+conflicts_build-append  libunwind libunwind-headers
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # hand-tweaked, approximately c++ standard 2017
 compiler.blacklist      *gcc* {clang < 1001} macports-clang-3.*
 # work/build/include/c++/v1/optional:224:5: error: destructor cannot be marked constexpr
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -280,7 +284,7 @@ if { ${subport} eq "clang-${llvm_version}" } {
</span> 
     configure.args-append   \
         -DLLVM_ENABLE_PROJECTS="clang\;clang-tools-extra\;compiler-rt\;lld" \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        -DLLVM_ENABLE_RUNTIMES="libcxx\;libcxxabi" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        -DLLVM_ENABLE_RUNTIMES="libcxx\;libcxxabi\;libunwind" \
</span>         -DLIBCXX_ENABLE_SHARED=ON    \
         -DLIBCXX_INSTALL_LIBRARY=ON
 }
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -422,7 +426,7 @@ variant tests description {Enable building of test code} {
</span> 
 post-destroot {
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    if { ${subport} eq "clang-${llvm_version}" || ${subport} eq "flang-${llvm_version}" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    if {[file exists ${destroot}${sub_prefix}/bin/clang]} {
</span>         # remove the clang symlink and replace it with the actual binary
         delete      ${destroot}${sub_prefix}/bin/clang
         file rename ${destroot}${sub_prefix}/bin/clang-${clang_exe_version} ${destroot}${sub_prefix}/bin/clang
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -448,11 +452,13 @@ post-destroot {
</span>         ln -s LLVMPolly.so ${destroot}${sub_prefix}/lib/LLVMPolly.dylib
     }
     
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    if { ${subport} eq "clang-${llvm_version}" || ${subport} eq "flang-${llvm_version}" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    if {[file exists ${destroot}${sub_prefix}/lib/cmake/clang/ClangTargets-release.cmake]} {
</span>         # fix the cmake scripts to point to the versioned files
         reinplace "s|/bin/clang-${clang_exe_version}|/bin/clang|g" \
             "${destroot}${sub_prefix}/lib/cmake/clang/ClangTargets-release.cmake"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        
</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;'>+    if { ${subport} eq "clang-${llvm_version}" || ${subport} eq "flang-${llvm_version}" } {
</span>         # http://trac.macports.org/ticket/33207
         ln -s ${prefix}/libexec/ld64/ld ${destroot}${sub_prefix}/bin/ld
     }
</pre><pre style='margin:0'>

</pre>