feat: add MTimeBuildTarget -> LeanTarget function

This commit is contained in:
tydeu 2021-07-24 08:40:33 -04:00
parent 5770529e09
commit 0d288b9bd3

View file

@ -118,4 +118,7 @@ def all (targets : List (LeanTarget a)) : IO (LeanTarget PUnit) := do
let task ← BuildTask.all <| targets.map (·.buildTask)
return BuildTarget.mk () ⟨hash, mtime⟩ task
def fromMTimeTarget (target : MTimeBuildTarget a) : LeanTarget a :=
{target with trace := LeanTrace.fromMTime target.mtime}
end LeanTarget