Loading executor.cpp +5 −0 Changes for executor.cpp: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -236,6 +236,11 @@ bool Executor::needs_rebuild(const std::string& target, const std::vector<std::s long long target_mtime = file_mtime(target); for (const auto& p : prereqs) { // A phony prerequisite (e.g. Kbuild's FORCE) is always considered out // of date by GNU make, so any target that lists it is always rebuilt. // This is what drives if_changed and forces e.g. tools/objtool and // archive (built-in.a) regeneration even when the target file exists. if (mf_.phony_targets.count(p)) return true; if (file_exists(p) && file_mtime(p) > target_mtime) return true; } return false; Loading Loading
executor.cpp +5 −0 Changes for executor.cpp: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -236,6 +236,11 @@ bool Executor::needs_rebuild(const std::string& target, const std::vector<std::s long long target_mtime = file_mtime(target); for (const auto& p : prereqs) { // A phony prerequisite (e.g. Kbuild's FORCE) is always considered out // of date by GNU make, so any target that lists it is always rebuilt. // This is what drives if_changed and forces e.g. tools/objtool and // archive (built-in.a) regeneration even when the target file exists. if (mf_.phony_targets.count(p)) return true; if (file_exists(p) && file_mtime(p) > target_mtime) return true; } return false; Loading