<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/383c577cd6e723761600ba01ab4eff6df43a94a9">https://github.com/macports/macports-ports/commit/383c577cd6e723761600ba01ab4eff6df43a94a9</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 383c577cd6e clang compilers: rework selection to only pick available compilers on OSX10.6
</span>383c577cd6e is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 383c577cd6e723761600ba01ab4eff6df43a94a9
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Sat Jul 20 12:44:37 2024 +0100
<span style='display:block; white-space:pre;color:#404040;'> clang compilers: rework selection to only pick available compilers on OSX10.6
</span>---
_resources/port1.0/compilers/clang_compilers.tcl | 31 +++++++++++++-----------
1 file changed, 17 insertions(+), 14 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/compilers/clang_compilers.tcl b/_resources/port1.0/compilers/clang_compilers.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 25b67130107..414cc4774b1 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/compilers/clang_compilers.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/compilers/clang_compilers.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -12,7 +12,8 @@ if {${os.platform} eq "darwin" && [option configure.build_arch] in [list ppc ppc
</span> return
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {${os.major} >= 11 || ${compiler.cxx_standard} >= 2020 || ${os.platform} ne "darwin"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Clang 17+ (currently) only available on Darwin11 and newer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.major} >= 11 || ${os.platform} ne "darwin"} {
</span> if {${os.major} >= 22 || ${os.platform} ne "darwin"} {
# For now limit exposure of clang-18+ to macOS13+ due to issues like
# https://github.com/macports/macports-ports/pull/21051
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -26,20 +27,25 @@ if {${os.major} >= 11 || ${compiler.cxx_standard} >= 2020 || ${os.platform} ne "
</span> # Limit clang 17 to c++14 or newer
lappend compilers macports-clang-17
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend compilers macports-clang-16 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- macports-clang-15 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- macports-clang-14
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} < 23 || ${os.platform} ne "darwin"} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # https://trac.macports.org/ticket/68257
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Versions of clang older than clang-14 probably have build issues on
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # macOS14+. Until resolved do not append to fallback list.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend compilers macports-clang-13 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- macports-clang-12
</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 {${os.major} >= 10 || ${os.platform} ne "darwin"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # On Darwin10 only use selection here if c++20+ required
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ${os.platform} ne "darwin" || ${os.major} >= 11 || ${compiler.cxx_standard} >= 2020 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend compilers macports-clang-16 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ macports-clang-15 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ macports-clang-14
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} < 23 || ${os.platform} ne "darwin"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/68257
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Versions of clang older than clang-14 probably have build issues on
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # macOS14+. Until resolved do not append to fallback list.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Unlikely they will ever really be needed here though.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend compilers macports-clang-13 macports-clang-12
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
}
if {${os.platform} eq "darwin"} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> if {${os.major} >= 9} {
lappend compilers macports-clang-11
if {[option build_arch] ne "arm64"} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -49,13 +55,11 @@ if {${os.platform} eq "darwin"} {
</span> }
}
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> if {${os.major} >= 9 && ${os.major} < 20} {
lappend compilers macports-clang-7.0 \
macports-clang-6.0 \
macports-clang-5.0
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> if {${os.major} < 16} {
# The Sierra SDK requires a toolchain that supports class properties
if {${os.major} >= 9} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -66,5 +70,4 @@ if {${os.platform} eq "darwin"} {
</span> lappend compilers macports-clang-3.3
}
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> }
</pre><pre style='margin:0'>
</pre>