diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-09-23 08:23:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-23 16:23:41 +0100 |
commit | 512b305856c7d79509bfc42245545b9ec5f5e0c4 (patch) | |
tree | 468ade60d3621ed3d205227123d460d298d014fd /PCbuild | |
parent | dc9065f8c2ddc483d387d977e0818d131fa67420 (diff) | |
download | cpython-git-512b305856c7d79509bfc42245545b9ec5f5e0c4.tar.gz |
gh-94781: Fix Windows projects not cleaning intermediate and output files for frozen modules (GH-96423)
(cherry picked from commit 3e26de3c1f24bf0810eaaf7d75a4332775870e78)
Co-authored-by: Charlie Zhao <zhaoyu_hit@qq.com>
Diffstat (limited to 'PCbuild')
-rw-r--r-- | PCbuild/_freeze_module.vcxproj | 4 | ||||
-rw-r--r-- | PCbuild/pcbuild.proj | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/PCbuild/_freeze_module.vcxproj b/PCbuild/_freeze_module.vcxproj index 0a74f5850a..442e3437da 100644 --- a/PCbuild/_freeze_module.vcxproj +++ b/PCbuild/_freeze_module.vcxproj @@ -424,6 +424,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> diff --git a/PCbuild/pcbuild.proj b/PCbuild/pcbuild.proj index 2ba0627b83..222821adb1 100644 --- a/PCbuild/pcbuild.proj +++ b/PCbuild/pcbuild.proj @@ -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" /> |