Note: I didn't test the windows part, I wrote it by reading https://msdn.microsoft.com/en-us/library/windows/desktop/ms724320(v=vs.85).aspx
So, the code looks fine, but given how limited the OS support is, is this
What cache replacement policy is used by clang? Or by ccache?
(Mark as accepted per Rafael on the mailing list)