summaryrefslogtreecommitdiff
path: root/src/task.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/task.h')
-rw-r--r--src/task.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/task.h b/src/task.h
index 6fe1686..f26d217 100644
--- a/src/task.h
+++ b/src/task.h
@@ -23,16 +23,18 @@ enum class State
class Task
{
public:
- Task(const ctor::build_configuration& config, const ctor::settings& settings,
- const std::string& sourceDir);
+ Task(ctor::target_type resolved_target_type,
+ const ctor::build_configuration& config,
+ const ctor::settings& settings,
+ std::string sourceDir);
virtual ~Task() = default;
int registerDepTasks(const std::vector<std::shared_ptr<Task>>& tasks);
- virtual int registerDepTasksInner(const std::vector<std::shared_ptr<Task>>& tasks) { return 0; }
+ virtual int registerDepTasksInner([[maybe_unused]]const std::vector<std::shared_ptr<Task>>& tasks) { return 0; }
bool operator==(const std::string& dep);
- virtual std::string name() const;
+ std::string name() const;
bool dirty();
bool ready();
int run();
@@ -79,5 +81,5 @@ protected:
ctor::language source_language{ctor::language::automatic};
ctor::output_system output_system{ctor::output_system::host};
const ctor::settings& settings;
- std::string sourceDir;
+ std::filesystem::path sourceDir;
};