diff options
author | Steve Dower <steve.dower@python.org> | 2021-07-29 19:53:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-29 19:53:29 (GMT) |
commit | 3edec5d142365f2340865b4f12652e6aa627818a (patch) | |
tree | df8d38e7a791fbed43680700803ed2c233ac49cb | |
parent | 2116909b3e1f044c268cebea78c92c7f593f99fe (diff) | |
download | cpython-3edec5d142365f2340865b4f12652e6aa627818a.zip cpython-3edec5d142365f2340865b4f12652e6aa627818a.tar.gz cpython-3edec5d142365f2340865b4f12652e6aa627818a.tar.bz2 |
bpo-44479: Do not regenerate files during a PGO build as it will invalidate the profile. (GH-27460)
-rw-r--r-- | PCbuild/regen.targets | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/PCbuild/regen.targets b/PCbuild/regen.targets index 38f82d1..27fdd6e 100644 --- a/PCbuild/regen.targets +++ b/PCbuild/regen.targets @@ -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> |