summaryrefslogtreecommitdiff
path: root/task.cc
diff options
context:
space:
mode:
Diffstat (limited to 'task.cc')
-rw-r--r--task.cc19
1 files changed, 18 insertions, 1 deletions
diff --git a/task.cc b/task.cc
index e5f11aa..928f95d 100644
--- a/task.cc
+++ b/task.cc
@@ -3,8 +3,10 @@
#include <unistd.h>
#include <iostream>
-Task::Task(const std::vector<std::string>& depends)
+Task::Task(const BuildConfiguration& config,
+ const std::vector<std::string>& depends)
: dependsStr(depends)
+ , config(config)
{
}
@@ -84,3 +86,18 @@ State Task::state() const
{
return task_state.load();
}
+
+const BuildConfiguration& Task::buildConfig() const
+{
+ return config;
+}
+
+TargetType Task::targetType() const
+{
+ return target_type;
+}
+
+Language Task::language() const
+{
+ return _language;
+}