]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44479: Do not regenerate files during a PGO build as it will invalidate the profi...
authorSteve Dower <steve.dower@python.org>
Thu, 29 Jul 2021 19:53:29 +0000 (20:53 +0100)
committerGitHub <noreply@github.com>
Thu, 29 Jul 2021 19:53:29 +0000 (20:53 +0100)
PCbuild/regen.targets

index 38f82d1b31a7f3d936b433a00f456f81d996e885..27fdd6e29b8bc2d744751c17bdf9515b012b670a 100644 (file)
@@ -78,7 +78,9 @@
           WorkingDirectory="$(PySourcePath)" />
   </Target>
 
-  <Target Name="Regen" DependsOnTargets="_TouchRegenSources;_RegenPegen;_RegenAST_H;_RegenOpcodes;_RegenTokens;_RegenKeywords">
+  <Target Name="Regen"
+          Condition="$(Configuration) != 'PGUpdate'"
+          DependsOnTargets="_TouchRegenSources;_RegenPegen;_RegenAST_H;_RegenOpcodes;_RegenTokens;_RegenKeywords">
     <Message Text="Generated sources are up to date" Importance="high" />
   </Target>
 
     <Message Text="Wrote $(OutDir)LICENSE.txt" Importance="high" />
   </Target>
 
-  <Target Name="PostBuildRegen" DependsOnTargets="_RegenTestFrozenmain;_RegenLicense" />
+  <Target Name="PostBuildRegen"
+          Condition="$(Configuration) != 'PGInstrument' and $(Configuration) != 'PGUpdate'"
+          DependsOnTargets="_RegenTestFrozenmain;_RegenLicense" />
 </Project>