diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-06-06 10:21:26 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-06-06 10:21:26 +0200 |
commit | a24b4475feca21444e290f54d963a1587553d883 (patch) | |
tree | dcf2a55175c8020860d0223d4fd6e02ff296306f /src | |
parent | 4b6c99baaef78580375a2575c32ce1b6c30bf8cb (diff) |
Break loop if ctor.cc config file contains a compile error.
Diffstat (limited to 'src')
-rw-r--r-- | src/rebuild.cc | 6 |
1 files changed, 5 insertions, 1 deletions
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) |