X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=ifchange.go;h=1f2c38194934da44475e97e039fb73601536a5a0;hb=ce96a1c785b32af13264225c0bf7ae8370a5af21;hp=d1bad27ddab6c7d036844bc9118a323648f605f5;hpb=8d2ac7eab48109db94e73368f4e980066b291b55;p=goredo.git diff --git a/ifchange.go b/ifchange.go index d1bad27..1f2c381 100644 --- a/ifchange.go +++ b/ifchange.go @@ -1,6 +1,6 @@ /* -goredo -- redo implementation on pure Go -Copyright (C) 2020 Sergey Matveev +goredo -- djb's redo implementation on pure Go +Copyright (C) 2020-2021 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -139,7 +139,7 @@ RebuildDeps: jobs := 0 queueSrc = []string{} for _, tgt := range queue { - ood, err := isOOD(Cwd, tgt, 0, seen) + ood, err := isOODWithTrace(Cwd, tgt, 0, seen) if err != nil { trace(CErr, "dependant error: %s, skipping dependants", err) return nil @@ -176,6 +176,7 @@ func ifchange(tgts []string, forced, traced bool) (bool, error) { defer jsAcquire("ifchange exiting") defer Jobs.Wait() seen := buildDependants(tgts) + oodTgtsClear() trace(CDebug, "building %d targets: %v", len(tgts), tgts) jobs := 0 errs := make(chan error, len(tgts)) @@ -188,7 +189,7 @@ func ifchange(tgts []string, forced, traced bool) (bool, error) { } ood = true if !forced { - ood, err = isOOD(Cwd, tgt, 0, seen) + ood, err = isOODWithTrace(Cwd, tgt, 0, seen) if err != nil { return false, err }