https://github.com/python/cpython/commit/11da7d4e210c6e358c65c7b2bf02360e7b6351ad
commit: 11da7d4e210c6e358c65c7b2bf02360e7b6351ad
branch: main
author: Ken Jin <[email protected]>
committer: Fidget-Spinner <[email protected]>
date: 2026-04-14T23:46:54+08:00
summary:
gh-148047: Revert "GH-148047: Check early whether tail-calling is possible for
MSVC builds on Windows (#148036)" (#148558)
This reverts commit cbd81d59cfea4f7b881642e804646da3a328a712.
files:
D Misc/NEWS.d/next/Build/2026-04-03-20-09-46.gh-issue-148047.HE6iGK.rst
M PCbuild/pythoncore.vcxproj
diff --git
a/Misc/NEWS.d/next/Build/2026-04-03-20-09-46.gh-issue-148047.HE6iGK.rst
b/Misc/NEWS.d/next/Build/2026-04-03-20-09-46.gh-issue-148047.HE6iGK.rst
deleted file mode 100644
index e43a2695a1316e..00000000000000
--- a/Misc/NEWS.d/next/Build/2026-04-03-20-09-46.gh-issue-148047.HE6iGK.rst
+++ /dev/null
@@ -1,2 +0,0 @@
-Fail fast with an explicit and clear error message if tail-calling is not
-possible for MSVC builds on Windows. Patch by Chris Eibl.
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
index 9356a66dfb4642..61bee29c0af3d6 100644
--- a/PCbuild/pythoncore.vcxproj
+++ b/PCbuild/pythoncore.vcxproj
@@ -749,13 +749,4 @@
<Target Name="_DeletePyBuildDirTxt" BeforeTargets="PrepareForBuild">
<Delete Files="$(OutDir)pybuilddir.txt" />
</Target>
-
- <Target Name="_CheckTailCalling" BeforeTargets="PrepareForBuild"
Condition="'$(UseTailCallInterp)' == 'true' and $(PlatformToolset) !=
'ClangCL'">
- <Error Text="MSVC supports tail-calling only for x64."
- Condition="$(Platform) != 'x64'" />
- <Error Text="Platform toolset >= v145 is required for tail-calling."
- Condition="$(PlatformToolset.Replace('v', '0')) < '145'" />
- <Error Text="MSVC requires optimization to be enabled for tail-calling."
- Condition="$(Configuration) == 'Debug'" />
- </Target>
</Project>
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]