From 6cc2e195700e6ce02c04160c0c93af6d325d89d7 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 8 Dec 2024 11:49:43 +0100 Subject: Call execute with full settings. --- src/tasks.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/tasks.cc') diff --git a/src/tasks.cc b/src/tasks.cc index 61c130b..a4c455b 100644 --- a/src/tasks.cc +++ b/src/tasks.cc @@ -72,7 +72,8 @@ const std::deque& getTargets(const ctor::settings& settings, std::vector> taskFactory(const ctor::build_configuration& config, const ctor::settings& settings, - const std::string& sourceDir) + const std::string& sourceDir, + bool is_self) { std::vector> tasks; @@ -145,7 +146,7 @@ std::vector> taskFactory(const ctor::build_configuration& case ctor::target_type::executable: case ctor::target_type::unit_test: tasks.push_back(std::make_shared(config, settings, config.target, - objects, sourceDir)); + objects, sourceDir, is_self)); break; case ctor::target_type::object: @@ -192,7 +193,7 @@ std::vector> getTasks(const ctor::settings& settings, std::find(std::begin(names), std::end(names), target.config.target) != std::end(names)) { std::vector objects; - auto t = taskFactory(target.config, settings, target.path); + auto t = taskFactory(target.config, settings, target.path, false); tasks.insert(tasks.end(), t.begin(), t.end()); } } -- cgit v1.2.3