From 4ef12438bcfbcd78afc00fbf4bff0e54f74d134f Mon Sep 17 00:00:00 2001 From: eidheim Date: Tue, 22 Aug 2017 08:15:05 +0200 Subject: [PATCH] Usages::Clang: improved file changed check --- src/usages_clang.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usages_clang.cc b/src/usages_clang.cc index 997a05d..896fdd0 100644 --- a/src/usages_clang.cc +++ b/src/usages_clang.cc @@ -443,7 +443,7 @@ bool Usages::Clang::add_usages_from_cache(const boost::filesystem::path &path, s for(auto &path_and_last_write_time : cache.paths_and_last_write_times) { boost::system::error_code ec; auto last_write_time = boost::filesystem::last_write_time(path_and_last_write_time.first, ec); - if(ec || last_write_time > path_and_last_write_time.second) { + if(ec || last_write_time != path_and_last_write_time.second) { // std::cout << "updated file: " << path_and_last_write_time.first << ", included from " << path << std::endl; return false; }