diff options
Diffstat (limited to 'src/task_ar.cc')
| -rw-r--r-- | src/task_ar.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/task_ar.cc b/src/task_ar.cc index 74ea888..16e0ce8 100644 --- a/src/task_ar.cc +++ b/src/task_ar.cc @@ -72,6 +72,15 @@ bool TaskAR::dirtyInner() } } + auto target_file_time = std::filesystem::last_write_time(targetFile()); + for(const auto& object_file : objectFiles) + { + if(std::filesystem::last_write_time(object_file) > target_file_time) + { + return true; + } + } + return false; } |
