From 0008920eed996009068fe9f71512c436577b6220 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 2 Oct 2024 21:20:40 +0200 Subject: Ensure the initial task order is preserved. Fixes bad ordering during linking. --- src/task.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/task.h') diff --git a/src/task.h b/src/task.h index 9e99f25..6fe1686 100644 --- a/src/task.h +++ b/src/task.h @@ -6,7 +6,6 @@ #include #include #include -#include #include #include @@ -28,8 +27,8 @@ public: const std::string& sourceDir); virtual ~Task() = default; - int registerDepTasks(const std::set>& tasks); - virtual int registerDepTasksInner(const std::set>& tasks) { return 0; } + int registerDepTasks(const std::vector>& tasks); + virtual int registerDepTasksInner(const std::vector>& tasks) { return 0; } bool operator==(const std::string& dep); @@ -64,7 +63,7 @@ public: ctor::output_system outputSystem() const; std::string compiler() const; - std::set> getDependsTasks(); + std::vector> getDependsTasks(); virtual std::string source() const { return {}; } @@ -74,7 +73,7 @@ protected: virtual bool dirtyInner() { return false; } std::vector dependsStr; - std::set> dependsTasks; + std::vector> dependsTasks; const ctor::build_configuration& config; ctor::target_type target_type{ctor::target_type::automatic}; ctor::language source_language{ctor::language::automatic}; -- cgit v1.2.3