Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit bd3c2cb

Browse files
committed
build: Launch mspdbsrv (well) outside build tree
The first step in each buildbot run is to clean the working tree from the last run. On Windows, it is not possible to delete a directory (or its parents) which is still the current working directory for a process. The `make.cmd` batch script launches the `mspdbsrv` service to collect debug information from the Windows build. The service runs continuously in the background; it isn't shut down when the build completes. Since the `make.cmd` script was being run with its CWD in the build tree, `mspdbsrv` was also remaining running in the build tree, blocking the deletion of the build tree. `mspdbsrv` can be run with any CWD, so this patch modifies `make.cmd` to launch `mspdbsrv` in the `$ProgramFiles(x86)` directory.
1 parent 6a6b06d commit bd3c2cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

make.cmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ ECHO %ProgramFilesBase%
1515
@REM Works around hangs when generating .pdb files
1616
@REM Needs to run in the background as never terminates
1717
@REM
18+
@REM Run this with its CWD outside the build tree so that
19+
@REM the fact it hangs around does not interfere with
20+
@REM cleaning up the build tree.
21+
@pushd %ProgramFilesBase%
1822
@start /min /b mspdbsrv -start -spawn -shutdowntime -1
23+
@popd
1924

2025
@REM Select the correct build mode.
2126
@REM

0 commit comments

Comments
 (0)