diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-01-18 10:54:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-01-18 10:54:23 +0200 |
commit | 70e095024ab33404ba0cf20c184a7a9560bca5f0 (patch) | |
tree | ea56d10fb9efbb1361863c7fc59e9ff74cde6f7b /libbuild2/build/script/builtin-options.ixx | |
parent | 1da1ae7733b7ef329b85df16cd15b91709cf4db9 (diff) |
Add dynamic prerequisites to $< unless --adhoc is specified
Also add a few tests for depdb-dyndep.
Diffstat (limited to 'libbuild2/build/script/builtin-options.ixx')
-rw-r--r-- | libbuild2/build/script/builtin-options.ixx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libbuild2/build/script/builtin-options.ixx b/libbuild2/build/script/builtin-options.ixx index 075bad8..6f91b2c 100644 --- a/libbuild2/build/script/builtin-options.ixx +++ b/libbuild2/build/script/builtin-options.ixx @@ -329,6 +329,24 @@ namespace build2 this->default_type_specified_ = x; } + inline const bool& depdb_dyndep_options:: + adhoc () const + { + return this->adhoc_; + } + + inline bool& depdb_dyndep_options:: + adhoc () + { + return this->adhoc_; + } + + inline void depdb_dyndep_options:: + adhoc (const bool& x) + { + this->adhoc_ = x; + } + inline const dir_path& depdb_dyndep_options:: cwd () const { |