summaryrefslogtreecommitdiff
path: root/src/rebuild.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-10-24 18:45:17 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-10-24 19:08:38 +0200
commit7bf162fcd98920644e4f61ac0181037eb62c807e (patch)
treea794bd89574d7aaa88e7caff0d507b9c3e145d6d /src/rebuild.cc
parentc0eacf8e85003844b95e71b9004fa464d4586a38 (diff)
Fix compilation of named targets and print notification when re-compiling config.
Diffstat (limited to 'src/rebuild.cc')
-rw-r--r--src/rebuild.cc7
1 files changed, 6 insertions, 1 deletions
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
+ }
}