[Python-checkins] Ensure LICENSE.txt file is generated even in PGO builds (GH-27580)
zooba
webhook-mailer at python.org
Tue Aug 3 11:52:54 EDT 2021
https://github.com/python/cpython/commit/6871fd0e8e5257f3ffebd1a1b2ca50e5f494e7f6
commit: 6871fd0e8e5257f3ffebd1a1b2ca50e5f494e7f6
branch: main
author: Steve Dower <steve.dower at python.org>
committer: zooba <steve.dower at microsoft.com>
date: 2021-08-03T16:52:45+01:00
summary:
Ensure LICENSE.txt file is generated even in PGO builds (GH-27580)
files:
M PCbuild/regen.targets
diff --git a/PCbuild/regen.targets b/PCbuild/regen.targets
index 27fdd6e29b8bc..9492cff2d8c3e 100644
--- a/PCbuild/regen.targets
+++ b/PCbuild/regen.targets
@@ -101,7 +101,8 @@
</ItemGroup>
<Target Name="_RegenTestFrozenmain" Inputs="@(_TestFrozenSources)" Outputs="@(_TestFrozenOutputs)"
- Condition="$(Platform) == 'Win32' or $(Platform) == 'x64'">
+ Condition="($(Platform) == 'Win32' or $(Platform) == 'x64') and
+ $(Configuration) != 'PGInstrument' and $(Configuration) != 'PGUpdate'">
<Message Text="Regenerate @(_TestFrozenOutputs->'%(Filename)%(Extension)', ' ')" Importance="high" />
<Exec Command="$(PythonExe) Programs\freeze_test_frozenmain.py Programs/test_frozenmain.h"
WorkingDirectory="$(PySourcePath)" />
@@ -121,7 +122,5 @@
<Message Text="Wrote $(OutDir)LICENSE.txt" Importance="high" />
</Target>
- <Target Name="PostBuildRegen"
- Condition="$(Configuration) != 'PGInstrument' and $(Configuration) != 'PGUpdate'"
- DependsOnTargets="_RegenTestFrozenmain;_RegenLicense" />
+ <Target Name="PostBuildRegen" DependsOnTargets="_RegenTestFrozenmain;_RegenLicense" />
</Project>
More information about the Python-checkins
mailing list