<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/fef917bdb74ea355b636b5df1ad3e111f2963434">https://github.com/macports/macports-ports/commit/fef917bdb74ea355b636b5df1ad3e111f2963434</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 fef917bdb74 clang-10: backport SDK search override
</span>fef917bdb74 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fef917bdb74ea355b636b5df1ad3e111f2963434
</span>Author: Ken Cunningham <kencu@macports.org>
AuthorDate: Wed Jan 20 13:00:10 2021 -0800
<span style='display:block; white-space:pre;color:#404040;'> clang-10: backport SDK search override
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> we have backported a bit of the cmake from clang-11
</span><span style='display:block; white-space:pre;color:#404040;'> for arm64 support for llvm/clang-10, so now we also
</span><span style='display:block; white-space:pre;color:#404040;'> need to backport the SDK search override from clang-11
</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/62083
</span>---
lang/llvm-10/Portfile | 8 ++++++++
1 file changed, 8 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/llvm-10/Portfile b/lang/llvm-10/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 7840a9dcf2c..ac4c557c250 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/llvm-10/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/llvm-10/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -260,6 +260,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>