diff options
author | Steve Dower <steve.dower@python.org> | 2021-08-03 15:52:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-03 15:52:45 (GMT) |
commit | 6871fd0e8e5257f3ffebd1a1b2ca50e5f494e7f6 (patch) | |
tree | 8989b406b3406f9b5728a58722691ed010ac38c1 /PCbuild | |
parent | 58325971de0faf330c9c38269dae8315a0746e59 (diff) | |
download | cpython-6871fd0e8e5257f3ffebd1a1b2ca50e5f494e7f6.zip cpython-6871fd0e8e5257f3ffebd1a1b2ca50e5f494e7f6.tar.gz cpython-6871fd0e8e5257f3ffebd1a1b2ca50e5f494e7f6.tar.bz2 |
Ensure LICENSE.txt file is generated even in PGO builds (GH-27580)
Diffstat (limited to 'PCbuild')
-rw-r--r-- | PCbuild/regen.targets | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/PCbuild/regen.targets b/PCbuild/regen.targets index 27fdd6e..9492cff 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> |