feat: add MTimeBuildTarget -> LeanTarget function
This commit is contained in:
parent
5770529e09
commit
0d288b9bd3
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue