bpo-44479: Do not regenerate files during a PGO build as it will invalidate the profile. (GH-27460)

This commit is contained in:
Steve Dower 2021-07-29 20:53:29 +01:00 committed by GitHub
parent 2116909b3e
commit 3edec5d142
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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>
@ -119,5 +121,7 @@
<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>