From f5d37c450823325ee43519dc710c21018f89f6ad Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 11 Oct 2025 08:50:34 +0100 Subject: dev-lang/python: check for new enough GCC/Clang for USE=tail-call-interp I've kept the p.use.stable.mask entry as users enabling it on stable would still have to manually set CC=clang etc and it doesn't seem worth it. Hopefully we can stable GCC 15 soonish anyway. Closes: https://bugs.gentoo.org/963989 Thanks-to: Jerome C Signed-off-by: Sam James --- dev-lang/python/python-3.14.0.ebuild | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'dev-lang/python/python-3.14.0.ebuild') diff --git a/dev-lang/python/python-3.14.0.ebuild b/dev-lang/python/python-3.14.0.ebuild index dac8cefa2176..1ce0497e573d 100644 --- a/dev-lang/python/python-3.14.0.ebuild +++ b/dev-lang/python/python-3.14.0.ebuild @@ -94,6 +94,12 @@ BDEPEND=" llvm-core/llvm:${LLVM_SLOT} ') ) + tail-call-interp? ( + || ( + >=sys-devel/gcc-15:* + >=llvm-core/clang-19:* + ) + ) " if [[ ${PV} != *_alpha* ]]; then RDEPEND+=" @@ -146,6 +152,10 @@ pkg_setup() { done linux-info_pkg_setup fi + if use tail-call-interp; then + tc-check-min_ver gcc 15 + tc-check-min_ver clang 19 + fi fi } -- cgit v1.2.3