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.cxx | |
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.cxx')
-rw-r--r-- | libbuild2/build/script/builtin-options.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbuild2/build/script/builtin-options.cxx b/libbuild2/build/script/builtin-options.cxx index dc54194..04cd1c2 100644 --- a/libbuild2/build/script/builtin-options.cxx +++ b/libbuild2/build/script/builtin-options.cxx @@ -412,6 +412,7 @@ namespace build2 include_path_specified_ (false), default_type_ (), default_type_specified_ (false), + adhoc_ (), cwd_ (), cwd_specified_ (false), drop_cycles_ () @@ -509,6 +510,8 @@ namespace build2 _cli_depdb_dyndep_options_map_["--default-type"] = &::build2::build::script::cli::thunk< depdb_dyndep_options, string, &depdb_dyndep_options::default_type_, &depdb_dyndep_options::default_type_specified_ >; + _cli_depdb_dyndep_options_map_["--adhoc"] = + &::build2::build::script::cli::thunk< depdb_dyndep_options, bool, &depdb_dyndep_options::adhoc_ >; _cli_depdb_dyndep_options_map_["--cwd"] = &::build2::build::script::cli::thunk< depdb_dyndep_options, dir_path, &depdb_dyndep_options::cwd_, &depdb_dyndep_options::cwd_specified_ >; |