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-0.3.14.9999.ebuild | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'dev-lang/python/python-0.3.14.9999.ebuild') diff --git a/dev-lang/python/python-0.3.14.9999.ebuild b/dev-lang/python/python-0.3.14.9999.ebuild index 9d9d70958f7a..a82f1b2c6f4b 100644 --- a/dev-lang/python/python-0.3.14.9999.ebuild +++ b/dev-lang/python/python-0.3.14.9999.ebuild @@ -77,6 +77,12 @@ BDEPEND=" dev-build/autoconf-archive app-alternatives/awk virtual/pkgconfig + tail-call-interp? ( + || ( + >=sys-devel/gcc-15:* + >=llvm-core/clang-19:* + ) + ) " if [[ ${PV} != *_alpha* ]]; then RDEPEND+=" @@ -122,6 +128,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