diff options
| author | Bent Bisballe Nyeng <deva@aasimon.org> | 2025-12-25 18:24:30 +0100 |
|---|---|---|
| committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2025-12-28 11:38:38 +0100 |
| commit | 3294ff2f9b7aa92b6dccc653c590ce27fa434f8c (patch) | |
| tree | d66268d34e9654877ae95bc0f769b8424bc4480c /src/tasks.cc | |
| parent | 3091c5b12717a44a67962b9e245b2de8069a7cf5 (diff) | |
Decorate sources as 'generated' to make sure they inject a dependency to their generators, and look for the sources in the build folder instead of the source folder.develop
Diffstat (limited to 'src/tasks.cc')
| -rw-r--r-- | src/tasks.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tasks.cc b/src/tasks.cc index 94fe269..7de8af9 100644 --- a/src/tasks.cc +++ b/src/tasks.cc @@ -114,9 +114,9 @@ std::vector<std::shared_ptr<Task>> taskFactory(const ctor::build_configuration& #ifndef BOOTSTRAP else { - for(const auto& file : config.sources) + for(const auto& source : config.sources) { - auto task = std::make_shared<TaskFn>(config, settings, sourceDir, file); + auto task = std::make_shared<TaskFn>(config, settings, sourceDir, source); tasks.push_back(task); objects.push_back(task->target()); } |
