]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix regeneration of global objects through the Windows build files (GH-96394)
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Tue, 30 Aug 2022 17:41:27 +0000 (23:11 +0530)
committerGitHub <noreply@github.com>
Tue, 30 Aug 2022 17:41:27 +0000 (18:41 +0100)
PCbuild/regen.targets

index 9073bb6ab2bd69d73b92aac99dc6f8e893af55d6..3938b66678eee05f2bd2198d43356ab086acea0e 100644 (file)
           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>