diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-10-24 18:45:17 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-10-24 19:08:38 +0200 |
commit | 7bf162fcd98920644e4f61ac0181037eb62c807e (patch) | |
tree | a794bd89574d7aaa88e7caff0d507b9c3e145d6d /src/build.h | |
parent | c0eacf8e85003844b95e71b9004fa464d4586a38 (diff) |
Fix compilation of named targets and print notification when re-compiling config.
Diffstat (limited to 'src/build.h')
-rw-r--r-- | src/build.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/build.h b/src/build.h index 1db3f5c..7be7517 100644 --- a/src/build.h +++ b/src/build.h @@ -11,16 +11,22 @@ #include "settings.h" #include "tasks.h" +//! Dry-run returns number of dirty tasks but otherwise does nothing. int build(const Settings& settings, const std::string& name, const std::list<std::shared_ptr<Task>>& tasks, - const std::list<std::shared_ptr<Task>>& all_tasks); + const std::list<std::shared_ptr<Task>>& all_tasks, + bool dryrun = false); +//! Dry-run returns number of dirty tasks but otherwise does nothing. int build(const Settings& settings, const std::string& name, - const std::list<std::shared_ptr<Task>>& all_tasks); + const std::list<std::shared_ptr<Task>>& all_tasks, + bool dryrun = false); +//! Dry-run returns number of dirty tasks but otherwise does nothing. int build(const Settings& settings, const std::string& name, const std::vector<Target>& targets, - const std::list<std::shared_ptr<Task>>& all_tasks); + const std::list<std::shared_ptr<Task>>& all_tasks, + bool dryrun = false); |