<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/59ac5a23bac8a6b938029373fb91cb44a6ce8543">https://github.com/macports/macports-ports/commit/59ac5a23bac8a6b938029373fb91cb44a6ce8543</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 59ac5a23bac8a6b938029373fb91cb44a6ce8543
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Thu Sep 19 02:40:23 2024 +0100
<span style='display:block; white-space:pre;color:#404040;'> clang compilers: relax c++ standards for clang17-19
</span>---
_resources/port1.0/compilers/clang_compilers.tcl | 10 ++++++----
1 file changed, 6 insertions(+), 4 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 0b9a715b4b0..74366e95fe2 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,7 @@ if {${os.platform} eq "darwin" && [option configure.build_arch] in [list ppc ppc
</span> return
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# Clang 17+ (currently) only available on Darwin11 and newer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Clang 17+ only available on Darwin11 and newer
</span> if {${os.major} >= 11 || ${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;'>@@ -20,13 +20,15 @@ if {${os.major} >= 11 || ${os.platform} ne "darwin"} {
</span> if {${os.major} >= 22 || ${os.platform} ne "darwin"} {
# Always allow clang-18+ on macOS15+ due to issues with clang-17 and older
# https://trac.macports.org/ticket/70779
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Elsewhere limit to c++17 or newer
</span> if { ${os.platform} ne "darwin" || ${os.major} >= 24 || ${compiler.cxx_standard} >= 2017 } {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend compilers macports-clang-19 macports-clang-18
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend compilers macports-clang-19
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ${os.platform} ne "darwin" || ${os.major} >= 24 || ${compiler.cxx_standard} >= 2014 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend compilers macports-clang-18
</span> }
}
# exclude clang-17 on macOS15+
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if { ${os.major} <= 23 && ${compiler.cxx_standard} >= 2011 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ${os.major} <= 23 } {
</span> # Limit clang 17 to c++11 or newer
lappend compilers macports-clang-17
}
</pre><pre style='margin:0'>
</pre>