]> git.ipfire.org Git - thirdparty/ccache.git/commit
fix: Fix MSVC crash when using /Zi /Fddebug.pdb
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 5 Feb 2024 18:51:49 +0000 (19:51 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 5 Feb 2024 19:13:36 +0000 (20:13 +0100)
commitca4b4614347e40730c41dac65de4d8f75539100e
tree23d61a94b2b1533c37fd0633304f3ab46f181a48
parentd754a1499cec21868236d7e9323b544370350b53
fix: Fix MSVC crash when using /Zi /Fddebug.pdb

With /Zi, MSVC starts a long-lived mspdbsrv.exe background process. The
implementation of #1274 kills all processes created by ccache including
mspdbsrv.exe, which can make cl.exe crash with this error message:

    fatal error C1090: PDB API call failed, error code '23': (0x000006BA)

Fix this by setting JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK to only kill
the compiler and not processes that the compiler creates.

Fixes #1386 in a better way.

(cherry picked from commit 02d8748a816c8913a5b973b4b0661f5ee6124ded)
src/execute.cpp