Skip to content

Commit

Permalink
py-ujson: fix for python312+
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Dec 28, 2024
1 parent c17e7ba commit c6ab48c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/py-ujson/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ if {${name} ne ${subport}} {
port:py${python.version}-setuptools_scm \
port:py${python.version}-toml

if {${python.version} > 311} {
compiler.cxx_standard 2011
}

if {[string match *clang* ${configure.compiler}] && ${configure.cxx_stdlib} ne ""} {
configure.cxx ${configure.cxx} -stdlib=${configure.cxx_stdlib}
}
Expand Down

0 comments on commit c6ab48c

Please sign in to comment.