<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/376fb3c2d90a908a555bacd94ac97885b3f096fb">https://github.com/macports/macports-ports/commit/376fb3c2d90a908a555bacd94ac97885b3f096fb</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 376fb3c2d90a908a555bacd94ac97885b3f096fb
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Mon Nov 30 23:25:50 2020 -0800

<span style='display:block; white-space:pre;color:#404040;'>    clang-11: fix build on < 10.10
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    the compiler-rt search for the SDK to use is
</span><span style='display:block; white-space:pre;color:#404040;'>    problematic on these older systems, I suspect because
</span><span style='display:block; white-space:pre;color:#404040;'>    there is no MacOSX.sdk present.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Wrestling with the cmake scripts in compiler-rt is
</span><span style='display:block; white-space:pre;color:#404040;'>    not a simple project, and keeps changing. Sending in
</span><span style='display:block; white-space:pre;color:#404040;'>    the SDK to use seems to be simpler and accepted.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    closes: https://trac.macports.org/ticket/61701
</span><span style='display:block; white-space:pre;color:#404040;'>    closes: https://trac.macports.org/ticket/61589
</span>---
 lang/llvm-11/Portfile | 8 ++++++++
 1 file changed, 8 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-11/Portfile b/lang/llvm-11/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 86d8052981e..1c7d2e8a304 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-11/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-11/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -292,6 +292,14 @@ if {[string match macports-clang-* ${configure.compiler}]} {
</span>     depends_skip_archcheck-append cctools
 }
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.major} <= 14} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # compiler-rt does a broad search for an SDK it likes, but this
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # search fails on older systems that don't have a MacOSX.sdk
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # TODO: apply this always to all systems?
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    if {${configure.sdkroot} eq ""} {set configure.sdkroot "/"}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    configure.args-append -DDARWIN_osx_SYSROOT="${configure.sdkroot}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Set CMAKE_LIBTOOL if we're using MacPorts-provided cctools
 if {[lsearch -exact $PortInfo(depends_build) port:cctools] != -1} {
     configure.args-append \
</pre><pre style='margin:0'>

</pre>