summaryrefslogtreecommitdiff
path: root/task.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-06-21 21:39:46 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-06-21 21:39:46 +0200
commitb25810b9668abe8f7cc7db24326a98c1b017966e (patch)
tree40cda88ffbf8dccfc2d2335783f608966874c58e /task.h
parentc53e622b648635539e4870fd0c9159c5d8c3be4a (diff)
Distinguish between host and target builds.
Diffstat (limited to 'task.h')
-rw-r--r--task.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/task.h b/task.h
index 7ea95fc..09bfd7d 100644
--- a/task.h
+++ b/task.h
@@ -39,7 +39,9 @@ public:
const BuildConfiguration& buildConfig() const;
TargetType targetType() const;
- Language language() const;
+ Language sourceLanguage() const;
+ OutputSystem outputSystem() const;
+ std::string compiler() const;
protected:
std::atomic<State> task_state{State::Unknown};
@@ -50,5 +52,6 @@ protected:
std::list<std::shared_ptr<Task>> dependsTasks;
const BuildConfiguration& config;
TargetType target_type{TargetType::Auto};
- Language _language{Language::Auto};
+ Language source_language{Language::Auto};
+ OutputSystem output_system{OutputSystem::Target};
};