Symlinks on macOS can result in "error: still dirty after 100 tries" when using Ninja

I am having the same issue on Mac OS but without any symlink.
Could this be related?

Thanks,
Serge