From d05f32f1eb6ce3a88eb5d6e9330a9feae571f823 Mon Sep 17 00:00:00 2001 From: stijn Date: Wed, 15 Oct 2025 11:29:03 +0200 Subject: [PATCH] windows/msvc: Make the PP defs for manifest freezing global. This is consistent with the other ports (see py/mkrules.mk) and makes more sense overall because it makes everything which is compiled use the same flags; until now all compilation steps which ran before or in absence of FreezeModules (e.g. qstr generation, compiling a single file on the command line or in the IDE) would use different PP defs. This didn't happen to cause any issues apparently but it's just more consistent/safer to not do that. Signed-off-by: stijn --- ports/windows/msvc/common.props | 1 + ports/windows/msvc/genhdr.targets | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ports/windows/msvc/common.props b/ports/windows/msvc/common.props index 55c9c934f2..b8d9096d67 100644 --- a/ports/windows/msvc/common.props +++ b/ports/windows/msvc/common.props @@ -23,6 +23,7 @@ $(PyIncDirs);%(AdditionalIncludeDirectories) _USE_MATH_DEFINES;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;_MBCS;%(PreprocessorDefinitions) + MICROPY_MODULE_FROZEN_MPY=1;MICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool;MPZ_DIG_SIZE=16;%(PreprocessorDefinitions) false Level1 false diff --git a/ports/windows/msvc/genhdr.targets b/ports/windows/msvc/genhdr.targets index 7bd8364a9e..57ec707ef9 100644 --- a/ports/windows/msvc/genhdr.targets +++ b/ports/windows/msvc/genhdr.targets @@ -168,9 +168,6 @@ using(var outFile = System.IO.File.CreateText(OutputFile)) { - - MICROPY_MODULE_FROZEN_MPY=1;MICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool;MPZ_DIG_SIZE=16;%(PreprocessorDefinitions) -