Windows: Intermittent failures of "mt.exe" when linking and using Ninja
From time to time, we have been experiencing intermittent "Access is denied" failures from mt.exe
when linking executables using the ninja
build. It appears that this issue is caused by Windows AV/security software.
We mainly use non-incremental links and therefore a possible solution to avoid this issue would be to eliminate the extra mt.exe
step by directly embedding the manifests in the link.exe
command.