diff options
| author | Bent Bisballe Nyeng <deva@aasimon.org> | 2025-11-28 10:23:56 +0100 |
|---|---|---|
| committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2025-11-28 10:23:56 +0100 |
| commit | 18090de64be976bd330838e609afb4787086a71f (patch) | |
| tree | 2bf07be0238cc174b05c01659798a8521db49c60 /src/rebuild.cc | |
| parent | 4b72df8f8e32aad83b628fb2f1c852cb108c2aba (diff) | |
Remove almost unused virtual Task::source() function.globbing
Diffstat (limited to 'src/rebuild.cc')
| -rw-r--r-- | src/rebuild.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rebuild.cc b/src/rebuild.cc index d62e998..276947b 100644 --- a/src/rebuild.cc +++ b/src/rebuild.cc @@ -14,6 +14,7 @@ #include "configure.h" #include "ctor.h" #include "tasks.h" +#include "task_cc.h" #include "build.h" #include "execute.h" #include "tools.h" @@ -222,9 +223,10 @@ bool recompileCheck(const ctor::settings& global_settings, int argc, char* argv[ bool reconfigure{false}; for(auto task : tasks) { + auto task_cc = std::dynamic_pointer_cast<TaskCC>(task); if(task->dirty() && - task->source() != "" && // only look at source files - task->source() != "configuration.cc") // don't reconfigure if only configuration.cc is changed. + // don't reconfigure if only configuration.cc is changed. + (task_cc && task_cc->sourceFile.string() != "configuration.cc")) { reconfigure |= true; } |
