diff --git a/_resources/port1.0/compilers/clang_compilers.tcl b/_resources/port1.0/compilers/clang_compilers.tcl index 911acbb6f5d..a24ea52b7b8 100644 --- a/_resources/port1.0/compilers/clang_compilers.tcl +++ b/_resources/port1.0/compilers/clang_compilers.tcl @@ -18,8 +18,8 @@ if {${os.major} >= 17 || ${os.platform} ne "darwin"} { # https://github.com/macports/macports-ports/pull/21051 # https://trac.macports.org/ticket/68640 if {${os.major} >= 22 || ${os.platform} ne "darwin"} { - # Expose clang-21 to ports needing the newest standards - if { ${os.platform} ne "darwin" || ${compiler.cxx_standard} >= 2020 } { + # Expose clang-21+ to ports needing the newest standards + if { ${os.platform} ne "darwin" || ${os.major} >= 25 || ${compiler.cxx_standard} >= 2020 } { lappend compilers macports-clang-22 macports-clang-21 } if { ${os.platform} ne "darwin" || ${compiler.cxx_standard} >= 2014 } {