Skip to content
Snippets Groups Projects
Unverified Commit 3e26de3c authored by Charlie Zhao's avatar Charlie Zhao Committed by GitHub
Browse files

gh-94781: Fix Windows projects not cleaning intermediate and output files for...

gh-94781: Fix Windows projects not cleaning intermediate and output files for frozen modules (GH-96423)
parent de33df27
No related branches found
No related tags found
No related merge requests found
Fix :file:`pcbuild.proj` to clean previous instances of ouput files in ``Python\deepfreeze`` and
``Python\frozen_modules`` directories on Windows. Patch by Charlie Zhao.
......@@ -425,6 +425,10 @@
<Target Name="_CleanFrozen" BeforeTargets="CoreClean" Condition="$(Configuration) != 'PGUpdate'">
<ItemGroup>
<Clean Include="%(None.IntFile)" />
<Clean Include="%(None.OutFile)" />
<Clean Include="%(GetPath.IntFile)" />
<Clean Include="%(GetPath.OutFile)" />
<Clean Include="$(PySourcePath)Python\deepfreeze\deepfreeze.c" />
</ItemGroup>
</Target>
</Project>
......@@ -125,6 +125,12 @@
StopOnFirstFailure="false"
Condition="%(CleanTarget) != ''"
Targets="%(CleanTarget)" />
<MSBuild Projects="@(FreezeProjects)"
Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)"
BuildInParallel="%(BuildInParallel)"
StopOnFirstFailure="false"
Condition="%(CleanTarget) != ''"
Targets="%(CleanTarget)" />
</Target>
<Target Name="CleanAll">
......@@ -140,6 +146,12 @@
StopOnFirstFailure="false"
Condition="%(CleanAllTarget) != ''"
Targets="%(CleanAllTarget)" />
<MSBuild Projects="@(FreezeProjects)"
Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)"
BuildInParallel="%(BuildInParallel)"
StopOnFirstFailure="false"
Condition="%(CleanTarget) != ''"
Targets="%(CleanTarget)" />
</Target>
<Target Name="Rebuild" DependsOnTargets="Clean;Build" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment