Skip to content

Commit 169eaaa

Browse files
committed
Upte: More improvements to the line clearing. Now also won't try to build (upToDate default behavior) when up to date
1 parent d96c54f commit 169eaaa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/redub/api.d

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,14 @@ void createSelectionsFile(ProjectNode tree)
327327
std.file.write(selectionsPath, dubSelections.data);
328328
}
329329

330+
bool isProjectUpToDate(ProjectDetails d)
331+
{
332+
import redub.building.cache;
333+
AdvCacheFormula sharedFormula;
334+
invalidateCaches(d.tree, CompilingSession(d.compiler, d.cDetails.arch), sharedFormula);
335+
return d.tree.isUpToDate;
336+
}
337+
330338

331339
ProjectDetails buildProject(ProjectDetails d)
332340
{

0 commit comments

Comments
 (0)