Skip to content

Commit

Permalink
libomp: use newer python for new systems (#27517)
Browse files Browse the repository at this point in the history
  • Loading branch information
i0ntempest authored Jan 30, 2025
1 parent db96b75 commit 57dae16
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lang/libomp/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,14 @@ if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} ne "libstdc++"} {
configure.cflags-append -stdlib=libc++
}

# Last python version to not require C11 (and thus a clang
# dependency on some OS versions). Used by libpsl (which is a
# dependency of cmake) for the same reason.
set python_branch 3.10
if {${os.platform} eq "darwin" && ${os.major} < 13} {
# Last python version to not require C11 (and thus a clang
# dependency on some OS versions). Used by libpsl (which is a
# dependency of cmake) for the same reason.
set python_branch 3.10
} else {
set python_branch 3.13
}
set python_ver [string map {. ""} ${python_branch}]
depends_build-append port:python${python_ver}
depends_skip_archcheck-append python${python_ver}
Expand Down

0 comments on commit 57dae16

Please sign in to comment.