From 7bf162fcd98920644e4f61ac0181037eb62c807e Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 24 Oct 2021 18:45:17 +0200 Subject: Fix compilation of named targets and print notification when re-compiling config. --- src/rebuild.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/rebuild.cc') diff --git a/src/rebuild.cc b/src/rebuild.cc index e017d92..c1f2a4a 100644 --- a/src/rebuild.cc +++ b/src/rebuild.cc @@ -140,5 +140,10 @@ void recompileCheck(const Settings& global_settings, int argc, char* argv[], } } - build(settings, "ctor", tasks); + auto dirty_tasks = build(settings, "ctor", tasks, true); // dryrun + if(dirty_tasks) + { + std::cout << "Rebuilding config.\n"; + build(settings, "ctor", tasks); // run for real + } } -- cgit v1.2.3