diff --git a/implementations/Crafter.Build-Clang.cpp b/implementations/Crafter.Build-Clang.cpp index c59df50..9262475 100644 --- a/implementations/Crafter.Build-Clang.cpp +++ b/implementations/Crafter.Build-Clang.cpp @@ -1109,6 +1109,21 @@ BuildResult Crafter::Build(Configuration& config, std::unordered_map& sources) { + for (const fs::path& source : sources) { + if (objNewer(buildDir / std::format("{}_source.o", source.filename().string()))) return true; + } + return false; + }; + if (sourceObjNewer(config.cFiles) || sourceObjNewer(config.cuda)) { + buildResult.repack = true; + } + } } } }