From d6890f0412c5864d0a2c6019924a0c94fe3fd552 Mon Sep 17 00:00:00 2001
From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
Date: Sat, 29 Nov 2025 21:43:06 +0100
Subject: [PATCH] GH-141808: Do not generate the jit stencils twice in case of
PGO builds on Windows. (GH-142043)
* do not build the jit stencils twice in case of PGO builds on Windows
* blurb it
(cherry picked from commit f2ca1581cab2da45880198af1c924dd40ec8a10b)
Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
---
.../next/Build/2025-11-28-19-49-01.gh-issue-141808.cV5K12.rst | 1 +
PCbuild/pyproject.props | 1 +
2 files changed, 2 insertions(+)
create mode 100644 Misc/NEWS.d/next/Build/2025-11-28-19-49-01.gh-issue-141808.cV5K12.rst
diff --git a/Misc/NEWS.d/next/Build/2025-11-28-19-49-01.gh-issue-141808.cV5K12.rst b/Misc/NEWS.d/next/Build/2025-11-28-19-49-01.gh-issue-141808.cV5K12.rst
new file mode 100644
index 00000000000000..3162c7c41418cc
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2025-11-28-19-49-01.gh-issue-141808.cV5K12.rst
@@ -0,0 +1 @@
+Do not generate the jit stencils twice in case of PGO builds on Windows.
diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props
index cf35e705f355a7..53bfe5e3ea95cc 100644
--- a/PCbuild/pyproject.props
+++ b/PCbuild/pyproject.props
@@ -13,6 +13,7 @@
$(Py_IntDir)\$(MajorVersionNumber)$(MinorVersionNumber)_frozen\
$(Py_IntDir)\$(MajorVersionNumber)$(MinorVersionNumber)$(ArchName)_$(Configuration)\zlib-ng\
$(Py_IntDir)\$(MajorVersionNumber)$(MinorVersionNumber)_$(Configuration)
+ $(Py_IntDir)\$(MajorVersionNumber)$(MinorVersionNumber)_PGInstrument
$(ProjectName)
$(TargetName)$(PyDebugExt)
false