summaryrefslogtreecommitdiffstats
path: root/PCbuild/regen.targets
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2022-08-30 17:41:27 (GMT)
committerGitHub <noreply@github.com>2022-08-30 17:41:27 (GMT)
commit13c309f1101dc86ca0138f239d45cb009d0e898d (patch)
tree26c9955c9f17e8e4317b6ad29e9508b4d7c8d3f5 /PCbuild/regen.targets
parent4217393aeed42d67dd4b16a128528f5ca8d939c4 (diff)
downloadcpython-13c309f1101dc86ca0138f239d45cb009d0e898d.zip
cpython-13c309f1101dc86ca0138f239d45cb009d0e898d.tar.gz
cpython-13c309f1101dc86ca0138f239d45cb009d0e898d.tar.bz2
Fix regeneration of global objects through the Windows build files (GH-96394)
Diffstat (limited to 'PCbuild/regen.targets')
-rw-r--r--PCbuild/regen.targets9
1 files changed, 8 insertions, 1 deletions
diff --git a/PCbuild/regen.targets b/PCbuild/regen.targets
index 9073bb6..3938b66 100644
--- a/PCbuild/regen.targets
+++ b/PCbuild/regen.targets
@@ -82,9 +82,16 @@
WorkingDirectory="$(PySourcePath)" />
</Target>
+ <Target Name="_RegenGlobalObjects"
+ DependsOnTargets="FindPythonForBuild">
+ <Message Text="Regenerate Global Objects" Importance="high" />
+ <Exec Command="$(PythonForBuild) Tools\scripts\generate_global_objects.py"
+ WorkingDirectory="$(PySourcePath)" />
+ </Target>
+
<Target Name="Regen"
Condition="$(Configuration) != 'PGUpdate'"
- DependsOnTargets="_TouchRegenSources;_RegenPegen;_RegenAST_H;_RegenOpcodes;_RegenTokens;_RegenKeywords">
+ DependsOnTargets="_TouchRegenSources;_RegenPegen;_RegenAST_H;_RegenOpcodes;_RegenTokens;_RegenKeywords;_RegenGlobalObjects">
<Message Text="Generated sources are up to date" Importance="high" />
</Target>