summaryrefslogtreecommitdiff
path: root/libcppbuild.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-06-19 15:41:56 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-06-19 15:41:56 +0200
commit9ae92b4f1d5c24fa9d8d73e6f916b5d6aa01da67 (patch)
tree5f0610eae0a3d65be8d371aaaa1424466c73f63b /libcppbuild.cc
parent0931b80defeffb6b36257ec5f279d661c17fe969 (diff)
Fail on missing dependecies and trigger re-build if depends list changes in build configurations.
Diffstat (limited to 'libcppbuild.cc')
-rw-r--r--libcppbuild.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcppbuild.cc b/libcppbuild.cc
index f575a52..9fcc4d4 100644
--- a/libcppbuild.cc
+++ b/libcppbuild.cc
@@ -248,7 +248,10 @@ int main(int argc, char* argv[])
for(auto task : tasks)
{
- task->registerDepTasks(tasks);
+ if(task->registerDepTasks(tasks))
+ {
+ return 1;
+ }
}
std::list<std::shared_ptr<Task>> dirtyTasks;