I've been having an issue on my Windows box where often my build directory would not be able to be deleted from a script due to a permission denied error from a temp file created during one of the Clang tests. Looking at the test, it appears to be badly formed, creating a temp file and then removing all permissions via chmod without actually involving clang at all. I've attempted to fix the test to carry out what I think is its original intent and made sure it cleans up after itself on success now so fixes my original issue of not being able to delete the build folder.
Thanks,
Greg Bedwell
SN Systems - Sony Computer Entertainment Inc.