Skip to content

Commit afdf832

Browse files
Add --stackref-debug flag to build.bat
1 parent 25edfa7 commit afdf832

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

PCbuild/build.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ if "%~1"=="-E" (set IncludeExternals=false) & shift & goto CheckOpts
106106
if "%~1"=="--no-ctypes" (set IncludeCTypes=false) & shift & goto CheckOpts
107107
if "%~1"=="--no-ssl" (set IncludeSSL=false) & shift & goto CheckOpts
108108
if "%~1"=="--no-tkinter" (set IncludeTkinter=false) & shift & goto CheckOpts
109+
if "%~1"=="--stackref-debug" (set StackRefDebug=true) & shift & goto CheckOpts
109110

110111
if "%IncludeExternals%"=="" set IncludeExternals=true
111112
if "%IncludeCTypes%"=="" set IncludeCTypes=true
@@ -202,6 +203,7 @@ echo on
202203
/p:PyStats=%PyStats%^
203204
/p:UseTailCallInterp=%UseTailCallInterp%^
204205
/p:DisableRemoteDebug=%DisableRemoteDebug%^
206+
/p:StackRefDebug=%StackRefDebug%^
205207
%1 %2 %3 %4 %5 %6 %7 %8 %9
206208

207209
@echo off

PCbuild/pythoncore.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
<PreprocessorDefinitions Condition="'$(UseTailCallInterp)' == 'true'">_Py_TAIL_CALL_INTERP=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
111111
<PreprocessorDefinitions Condition="'$(WITH_COMPUTED_GOTOS)' != ''">HAVE_COMPUTED_GOTOS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
112112
<PreprocessorDefinitions Condition="'$(DisableRemoteDebug)' != 'true'">Py_REMOTE_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
113+
<PreprocessorDefinitions Condition="'$(StackRefDebug)' == 'true'">Py_STACKREF_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
113114
</ClCompile>
114115
<Link>
115116
<AdditionalDependencies>version.lib;ws2_32.lib;pathcch.lib;bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies>

0 commit comments

Comments
 (0)