Commit 8e96deac authored by jan.koester's avatar jan.koester
Browse files

tetst

parent 426da232
Loading
Loading
Loading
Loading
+5 −0
Changes for executor.cpp: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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;