Skip to content

Commit 65e6cfa

Browse files
committed
Changes for Windows build
1 parent 43740f7 commit 65e6cfa

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

PC/pyconfig.h.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ WIN32 is still required for the locale module.
102102
/* #define Py_GIL_DISABLED 1 */
103103
#endif
104104

105+
/* Define to 1 if you want to enable the JIT */
106+
/* Define to "interpreter" if you want to enable tier 2 interpreter */
107+
#ifndef Py_JIT_ENABLED
108+
/* #define Py_JIT_ENABLED 1*/
109+
#endif
110+
105111
/* Compiler specific defines */
106112

107113
/* ------------------------------------------------------------------------*/

PCbuild/pythoncore.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@
709709
<PyConfigHText>$(PyConfigHText.Replace('/* #define Py_JIT_ENABLED 1 */', '#define Py_JIT_ENABLED 1'))</PyConfigHText>
710710
</PropertyGroup>
711711
<PropertyGroup Condition="$(UseTIER2) == 'true'">
712-
<PyConfigHText>$(PyConfigHText.Replace('/* #define Py_JIT_ENABLED "interpreter" */', '#define Py_JIT_ENABLED "interpreter"'))</PyConfigHText>
712+
<PyConfigHText>$(PyConfigHText.Replace('/* #define Py_JIT_ENABLED 1 */', '#define Py_JIT_ENABLED "interpreter"'))</PyConfigHText>
713713
</PropertyGroup>
714714
<Message Text="Updating pyconfig.h" Condition="$(PyConfigHText.TrimEnd()) != $(OldPyConfigH.TrimEnd())" />
715715
<WriteLinesToFile File="$(IntDir)pyconfig.h"

0 commit comments

Comments
 (0)