summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2021-07-29 22:18:17 (GMT)
committerGitHub <noreply@github.com>2021-07-29 22:18:17 (GMT)
commit0b984d1cccc9547c2c16203e9ab2b2959fbabcde (patch)
treecaec27d4ff7166370ab35f54cc5680bca4bb4d26 /PCbuild
parent9d7511c7e0504cbc79ade4b55ee7b244d101bb1b (diff)
downloadcpython-0b984d1cccc9547c2c16203e9ab2b2959fbabcde.zip
cpython-0b984d1cccc9547c2c16203e9ab2b2959fbabcde.tar.gz
cpython-0b984d1cccc9547c2c16203e9ab2b2959fbabcde.tar.bz2
bpo-44479: Do not regenerate files during a PGO build as it will invalidate the profile. (GH-27462)
Also remove some unused code that should not have been backported.
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/regen.targets12
1 files changed, 6 insertions, 6 deletions
diff --git a/PCbuild/regen.targets b/PCbuild/regen.targets
index a1de340..ff56d11 100644
--- a/PCbuild/regen.targets
+++ b/PCbuild/regen.targets
@@ -78,16 +78,14 @@
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>
<ItemGroup>
- <_TestFrozenSources Include="$(PySourcePath)Programs\freeze_test_frozenmain.py;
- $(PySourcePath)Programs\test_frozenmain.py;
- @(_OpcodeOutputs)" />
- <_TestFrozenOutputs Include="$(PySourcePath)Programs\test_frozenmain.h" />
<_LicenseSources Include="$(PySourcePath)LICENSE;
$(PySourcePath)PC\crtlicense.txt;
$(bz2Dir)LICENSE;
@@ -112,5 +110,7 @@
<Message Text="Wrote $(OutDir)LICENSE.txt" Importance="high" />
</Target>
- <Target Name="PostBuildRegen" DependsOnTargets="_RegenLicense" />
+ <Target Name="PostBuildRegen"
+ Condition="$(Configuration) != 'PGInstrument' and $(Configuration) != 'PGUpdate'"
+ DependsOnTargets="_RegenLicense" />
</Project>