gecko-dev/taskcluster/scripts/misc/vs-cleanup.sh
Mitchell Hentges b48f6cf7dc Bug 1757813: Detect "MSYS" unames as msyshosts r=firefox-build-system-reviewers,nalexander
MozillaBuild 3.4's kernel name was `MINGW32_NT-6.2`, but the new
MozillaBuild's kernel name looks like `MSYS_NT-10.0-19044`.

Update existing first-party detection code to properly handle the modern
MSYS "kernel name" format.

Differential Revision: https://phabricator.services.mozilla.com/D140096
2022-03-02 21:01:07 +00:00

13 lines
567 B
Bash

case "$(uname -s)" in
MINGW*|MSYS*)
# For some reason, by the time the task finishes, and when run-task
# starts its cleanup, there is still a vctip.exe (MSVC telemetry-related
# process) running and using a dll that run-task can't then delete.
# "For some reason", because the same doesn't happen with other tasks.
# In fact, this used to happen with older versions of MSVC for other
# tasks, and stopped when upgrading to 15.8.4...
taskkill -f -im vctip.exe || true
# Same with the mspdbsrv process.
taskkill -f -im mspdbsrv.exe || true
;;
esac