Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit 182a578

Browse files
authored
perf: do not build object files of imports when linking executable
1 parent afc25a9 commit 182a578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Lake/Build/Roots.lean

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def LeanExe.recBuild (self : LeanExe) : IndexT m ActiveFileTarget := do
8383
let (_, imports) ← self.root.imports.recBuild
8484
let linkTargets := #[Target.active <| ← self.root.o.recBuild]
8585
let mut linkTargets ← imports.foldlM (init := linkTargets) fun arr mod => do
86-
return arr.push <| Target.active <| ← mod.o.recBuild
86+
return arr.push <| Target.active <| ← mod.c.recBuild
8787
let deps := (← recBuild <| self.pkg.facet &`deps).push self.pkg
8888
for dep in deps do for lib in dep.externLibs do
8989
linkTargets := linkTargets.push <| Target.active <| ← lib.static.recBuild

0 commit comments

Comments
 (0)