summaryrefslogtreecommitdiffstats
path: root/Tools/buildbot/clean.bat
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/buildbot/clean.bat')
-rw-r--r--Tools/buildbot/clean.bat28
1 files changed, 12 insertions, 16 deletions
diff --git a/Tools/buildbot/clean.bat b/Tools/buildbot/clean.bat
index f4643a8..39fec01 100644
--- a/Tools/buildbot/clean.bat
+++ b/Tools/buildbot/clean.bat
@@ -5,29 +5,25 @@ setlocal
set root=%~dp0..\..
set pcbuild=%root%\PCbuild
-echo.Attempting to kill Pythons...
-for %%k in (kill_python.exe
- kill_python_d.exe
- amd64\kill_python.exe
- amd64\kill_python_d.exe
- ) do (
- if exist "%pcbuild%\%%k" (
- echo.Calling %pcbuild%\%%k...
- "%pcbuild%\%%k"
- )
-)
if "%1" == "x64" (
set vcvars_target=x86_amd64
- set platform_target=x64
+ set platform=x64
) else (
set vcvars_target=x86
- set platform_target=x86
+ set platform=Win32
)
-call "%VS100COMNTOOLS%\..\..\VC\vcvarsall.bat" %vcvars_target%
+
+call "%pcbuild%\env.bat" %vcvars_target%
+
+echo.Attempting to kill Pythons...
+msbuild /v:m /nologo /target:KillPython "%pcbuild%\pythoncore.vcxproj" /p:Configuration=Release /p:Platform=%platform%
+
echo Deleting .pyc/.pyo files ...
del /s "%root%\Lib\*.pyc" "%root%\Lib\*.pyo"
+
echo Deleting test leftovers ...
rmdir /s /q "%root%\build"
-msbuild /target:clean "%pcbuild%\pcbuild.sln" /p:Configuration=Release /p:PlatformTarget=%platform_target%
-msbuild /target:clean "%pcbuild%\pcbuild.sln" /p:Configuration=Debug /p:PlatformTarget=%platform_target%
+echo Deleting build
+msbuild /v:m /nologo /target:clean "%pcbuild%\pcbuild.proj" /p:Configuration=Release /p:Platform=%platform%
+msbuild /v:m /nologo /target:clean "%pcbuild%\pcbuild.proj" /p:Configuration=Debug /p:Platform=%platform%