<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/818e3dda3a1c02b963be7514458a3f08fc794e7e">https://github.com/macports/macports-ports/commit/818e3dda3a1c02b963be7514458a3f08fc794e7e</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 818e3dda3a1 clang-12: remove flang/mlir
</span>818e3dda3a1 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 818e3dda3a1c02b963be7514458a3f08fc794e7e
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Sun Apr 23 21:16:44 2023 -0700

<span style='display:block; white-space:pre;color:#404040;'>    clang-12: remove flang/mlir
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    on all the other clang builds, flang is a separate
</span><span style='display:block; white-space:pre;color:#404040;'>    port. on clang-12 we put flang in as part of the
</span><span style='display:block; white-space:pre;color:#404040;'>    clang build, but this is a problem for i386, as
</span><span style='display:block; white-space:pre;color:#404040;'>    flang does not build i386, at present at least.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    remove the flang/mlir build from clang-12 to allow
</span><span style='display:block; white-space:pre;color:#404040;'>    clang-12 to build on 32bit SnowLeopard.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    if there is interest, a flang-12/mlir-12 port could be
</span><span style='display:block; white-space:pre;color:#404040;'>    added to this Portfile. However, flang-12 is still not
</span><span style='display:block; white-space:pre;color:#404040;'>    very functional at this point in time and so there is
</span><span style='display:block; white-space:pre;color:#404040;'>    likely neither interest nor need for it.
</span>---
 lang/llvm-12/Portfile | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-12/Portfile b/lang/llvm-12/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 192372bd72d..f5e137f214f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-12/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-12/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -33,7 +33,7 @@ use_xz                  yes
</span> 
 name                    llvm-${llvm_version}
 revision                3
<span style='display:block; white-space:pre;background:#ffe0e0;'>-subport                 clang-${llvm_version} {revision 2}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport                 clang-${llvm_version} {revision 3}
</span> subport                 lldb-${llvm_version}  {revision 2}
 dist_subdir             llvm
 set suffix              mp-${llvm_version}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -212,7 +212,7 @@ if {${subport} eq "clang-${llvm_version}"} {
</span>         -DLIBCXX_INSTALL_LIBRARY=ON
 
     configure.args-append   \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        -DLLVM_ENABLE_PROJECTS="clang\;clang-tools-extra\;compiler-rt\;libcxx\;libcxxabi\;flang\;mlir\;lld"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        -DLLVM_ENABLE_PROJECTS="clang\;clang-tools-extra\;compiler-rt\;libcxx\;libcxxabi\;lld"
</span> 
     if {${os.major} <= 18} {
         # on systems that might build i386, we need atomic builtins
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -298,8 +298,6 @@ if {${subport} eq "clang-${llvm_version}"} {
</span>         # components we want to install are not available; we want "everything but llvm"
         system "cd ${destroot.dir}/tools/clang          && ${destroot.cmd} ${destroot.pre_args} ${destroot.target} ${destroot.post_args}"
         system "cd ${destroot.dir}/tools/lld            && ${destroot.cmd} ${destroot.pre_args} ${destroot.target} ${destroot.post_args}"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        system "cd ${destroot.dir}/tools/mlir           && ${destroot.cmd} ${destroot.pre_args} ${destroot.target} ${destroot.post_args}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        system "cd ${destroot.dir}/tools/flang          && ${destroot.cmd} ${destroot.pre_args} ${destroot.target} ${destroot.post_args}"
</span> 
         system "cd ${destroot.dir}/projects/compiler-rt && ${destroot.cmd} ${destroot.pre_args} ${destroot.target} ${destroot.post_args}"
         system "cd ${destroot.dir}/projects/libcxx      && ${destroot.cmd} ${destroot.pre_args} ${destroot.target} ${destroot.post_args}"
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -336,8 +334,6 @@ post-destroot {
</span>     }
 
     if {${subport} eq "clang-${llvm_version}"} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        # fix errant permissions on the flang binary
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        system "chmod 755 ${destroot}${sub_prefix}/bin/flang"
</span> 
         # fix the cmake scripts to point to the versioned files
         reinplace "s|/bin/clang-${llvm_version}|/bin/clang|g" \
</pre><pre style='margin:0'>

</pre>