Skip to content

Commit

Permalink
clang compilers: allow clang-16 again on macOS15+
Browse files Browse the repository at this point in the history
  • Loading branch information
cjones051073 committed Sep 26, 2024
1 parent 59bca6e commit d0dbbcb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
24 changes: 13 additions & 11 deletions _resources/port1.0/compilers/clang_compilers.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,21 @@ if {${os.major} >= 11 || ${os.platform} ne "darwin"} {
lappend compilers macports-clang-17
}

# exclude clang-16 and older on macOS15+
if { ( ${os.major} <= 23 && ${os.major} >= 10 ) || ${os.platform} ne "darwin"} {
if { ${os.major} >= 10 || ${os.platform} ne "darwin"} {
# On Darwin10 only use selection here if c++20+ required
if { ${os.platform} ne "darwin" || ${os.major} >= 11 || ${compiler.cxx_standard} >= 2020 } {
lappend compilers macports-clang-16 \
macports-clang-15 \
macports-clang-14
if {${os.major} < 23 || ${os.platform} ne "darwin"} {
# https://trac.macports.org/ticket/68257
# Versions of clang older than clang-14 probably have build issues on
# macOS14+. Until resolved do not append to fallback list.
# Unlikely they will ever really be needed here though.
lappend compilers macports-clang-13 macports-clang-12
# These are allowed still on macOS15+
lappend compilers macports-clang-16
if { ${os.major} < 24 || ${os.platform} ne "darwin"} {
# Still have some issues on macOS15+ so disallow as 'official' fallbacks
lappend compilers macports-clang-15 macports-clang-14
if {${os.major} < 23 || ${os.platform} ne "darwin"} {
# https://trac.macports.org/ticket/68257
# Versions of clang older than clang-14 probably have build issues on
# macOS14+. Until resolved do not append to fallback list.
# Unlikely they will ever really be needed here though.
lappend compilers macports-clang-13 macports-clang-12
}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions _resources/port1.0/group/compilers-1.0.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ if { ${os.major} >= 9 || ${os.platform} ne "darwin" } {
if { ${os.major} <= 23 || ${os.platform} ne "darwin"} {
lappend clang_versions 11
if { ${os.major} >= 11 || ${os.platform} ne "darwin"} {
lappend clang_versions 12 13 14 15 16
lappend clang_versions 12 13 14 15
}
}
if { ${os.major} >= 11 || ${os.platform} ne "darwin"} {
lappend clang_versions 17 18 19
lappend clang_versions 16 17 18 19
}
if { ${os.major} >= 14 } {
lappend clang_versions devel
Expand Down

0 comments on commit d0dbbcb

Please sign in to comment.