From a24b4475feca21444e290f54d963a1587553d883 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 6 Jun 2022 10:21:26 +0200 Subject: Break loop if ctor.cc config file contains a compile error. --- src/rebuild.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/rebuild.cc b/src/rebuild.cc index 50d7540..7c34e77 100644 --- a/src/rebuild.cc +++ b/src/rebuild.cc @@ -229,7 +229,11 @@ bool recompileCheck(const Settings& global_settings, int argc, char* argv[], if(dirty_tasks) { std::cout << "Rebuilding config.\n"; - build(settings, "ctor", tasks); // run for real + auto ret = build(settings, "ctor", tasks); // run for real + if(ret != 0) + { + return ret; + } } if(reconfigure) -- cgit v1.2.3