From e77d17ba4655e4ad5e4bab53a9d0406c091c3317 Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Tue, 19 May 2026 16:53:24 +0200 Subject: [PATCH] fixed stale dep --- implementations/Crafter.Build-Clang.cpp | 37 ++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/implementations/Crafter.Build-Clang.cpp b/implementations/Crafter.Build-Clang.cpp index 775096e..8ac6c40 100644 --- a/implementations/Crafter.Build-Clang.cpp +++ b/implementations/Crafter.Build-Clang.cpp @@ -255,7 +255,7 @@ BuildResult Crafter::Build(Configuration& config, std::unordered_map consumerMtime; + }; + for (const std::unique_ptr& iface : config.interfaces) { + if (objNewer(buildDir / (iface->path.filename().string() + ".o"))) { + buildResult.repack = true; + break; + } + bool partHit = false; + for (const std::unique_ptr& part : iface->partitions) { + if (objNewer(buildDir / (part->path.filename().string() + ".o"))) { + partHit = true; + break; + } + } + if (partHit) { buildResult.repack = true; break; } + } + if (!buildResult.repack) { + for (const Implementation& impl : config.implementations) { + if (objNewer(buildDir / (impl.path.filename().string() + "_impl.o"))) { + buildResult.repack = true; + break; + } + } + } + } } }