Skip to content

Commit 009f9bf

Browse files
committed
On Windows, define Py_STATS macro to 1 when it's defined
1 parent d8e37a7 commit 009f9bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎PCbuild/pyproject.props‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<_DebugPreprocessorDefinition>NDEBUG;</_DebugPreprocessorDefinition>
5353
<_DebugPreprocessorDefinition Condition="$(Configuration) == 'Debug'">_DEBUG;</_DebugPreprocessorDefinition>
5454
<_PyStatsPreprocessorDefinition>PyStats;</_PyStatsPreprocessorDefinition>
55-
<_PyStatsPreprocessorDefinition Condition="$(PySTATS) != ''">Py_STATS;</_PyStatsPreprocessorDefinition>
55+
<_PyStatsPreprocessorDefinition Condition="$(PySTATS) != ''">Py_STATS=1;</_PyStatsPreprocessorDefinition>
5656
<_PlatformPreprocessorDefinition>_WIN32;</_PlatformPreprocessorDefinition>
5757
<_PlatformPreprocessorDefinition Condition="$(Platform) == 'x64'">_WIN64;</_PlatformPreprocessorDefinition>
5858
<_PlatformPreprocessorDefinition Condition="$(Platform) == 'x64' and $(PlatformToolset) != 'ClangCL'">_M_X64;$(_PlatformPreprocessorDefinition)</_PlatformPreprocessorDefinition>

0 commit comments

Comments
 (0)