summaryrefslogtreecommitdiff
path: root/src/task_cc.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2022-06-08 17:38:01 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2022-06-09 22:28:32 +0200
commit7a16146600384272baf7fb2fc0fc64f59b17ffe9 (patch)
tree755df6191525a49862d957dc120dcbabcbb03f39 /src/task_cc.cc
parent69d6df33bf7fabe62cdcd61bcd7ebc20b6de6b67 (diff)
Function target type including support for generated sources.
Diffstat (limited to 'src/task_cc.cc')
-rw-r--r--src/task_cc.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/task_cc.cc b/src/task_cc.cc
index ee25abf..a55a619 100644
--- a/src/task_cc.cc
+++ b/src/task_cc.cc
@@ -17,6 +17,7 @@ TaskCC::TaskCC(const BuildConfiguration& config, const Settings& settings,
, config(config)
, settings(settings)
, sourceDir(sourceDir)
+ , _source(source)
{
sourceFile = sourceDir;
sourceFile /= source.file;
@@ -66,6 +67,19 @@ TaskCC::TaskCC(const BuildConfiguration& config, const Settings& settings,
flagsFile += ".flags";
}
+int TaskCC::registerDepTasksInner(const std::set<std::shared_ptr<Task>>& tasks)
+{
+ for(const auto& task : tasks)
+ {
+ if(*task == _source.file)
+ {
+ dependsTasks.insert(task);
+ }
+ }
+
+ return 0;
+}
+
std::string TaskCC::name() const
{
return {};