summaryrefslogtreecommitdiff
path: root/task.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-06-20 20:21:58 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-06-20 20:21:58 +0200
commitc53e622b648635539e4870fd0c9159c5d8c3be4a (patch)
treea154de97d62e2aad99ccb5498ca7c297ee93623e /task.cc
parent4bc1ac3fe2fe3ae96ba0e5aa4d19fa4885a16c83 (diff)
Introduction of configuration generation for controlling tool-chain.
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;
+}