bruno added a comment. What about: sys::fs::file_status Status; if (sys::fs::status(LHS, Status)) return false; auto LastModTime = Status.getLastModificationTime(); http://reviews.llvm.org/D18422