From 02e9fe0f5750c253cb47a655b8634fc48b2518d2 Mon Sep 17 00:00:00 2001 From: Dino Viehland Date: Tue, 14 Oct 2025 13:35:43 -0700 Subject: [PATCH] Windows build fix --- PCbuild/python.vcxproj | 2 +- PCbuild/pythoncore.vcxproj | 5 ++++- Python/flowgraph.c | 1 - 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/PCbuild/python.vcxproj b/PCbuild/python.vcxproj index 70dabaa3c8b..75c314cbef0 100644 --- a/PCbuild/python.vcxproj +++ b/PCbuild/python.vcxproj @@ -91,7 +91,7 @@ - Py_BUILD_CORE;_CONSOLE;%(PreprocessorDefinitions) + ENABLE_LAZY_IMPORTS;Py_BUILD_CORE;_CONSOLE;%(PreprocessorDefinitions) Console diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj index b911c938563..f65744f7dd8 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -103,7 +103,7 @@ $(PySourcePath)Modules\_hacl;$(PySourcePath)Modules\_hacl\include;$(PySourcePath)Python;%(AdditionalIncludeDirectories) $(zlibNgDir);$(GeneratedZlibNgDir);%(AdditionalIncludeDirectories) $(GeneratedJitStencilsDir);%(AdditionalIncludeDirectories) - _USRDLL;Py_BUILD_CORE;Py_BUILD_CORE_BUILTIN;Py_ENABLE_SHARED;MS_DLL_ID="$(SysWinVer)";ZLIB_COMPAT;%(PreprocessorDefinitions) + ENABLE_LAZY_IMPORTS;_USRDLL;Py_BUILD_CORE;Py_BUILD_CORE_BUILTIN;Py_ENABLE_SHARED;MS_DLL_ID="$(SysWinVer)";ZLIB_COMPAT;%(PreprocessorDefinitions) _Py_HAVE_ZLIB;%(PreprocessorDefinitions) _Py_JIT;%(PreprocessorDefinitions) _Py_TIER2=$(UseTIER2);%(PreprocessorDefinitions) @@ -268,6 +268,7 @@ + @@ -331,6 +332,7 @@ + @@ -537,6 +539,7 @@ + diff --git a/Python/flowgraph.c b/Python/flowgraph.c index 1d28ec00329..bdf4c391d71 100644 --- a/Python/flowgraph.c +++ b/Python/flowgraph.c @@ -2981,7 +2981,6 @@ optimize_load_fast(cfg_builder *g) } // Push fallthrough block - cfg_instr *term = basicblock_last_instr(block); if (BB_HAS_FALLTHROUGH(block)) { assert(block->b_next != NULL); load_fast_push_block(&sp, block->b_next, refs.size);