diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-01-30 16:07:49 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-01-31 10:20:01 +0100 |
commit | 8a4a900f93a704f18d5489b682508840a8cda179 (patch) | |
tree | 08dbac7941e596c8ab5a3eae2808fc8c4bee8d25 /src/other_tools/just_mr/utils.hpp | |
parent | e2168c51eb9d29542b32aaf7bca24595d0745749 (diff) | |
download | justbuild-8a4a900f93a704f18d5489b682508840a8cda179.tar.gz |
just-mrrc: support remote-execution properties
While just-mr does not use remote-execution properties, it is
still useful to have those as a separate entry in the rc file. With
rc-file delegation, this gives committed rc files an easy way to
specify the image to be used without having to set all the remaining
arguments for the various just subcommands in "just args".
Diffstat (limited to 'src/other_tools/just_mr/utils.hpp')
-rw-r--r-- | src/other_tools/just_mr/utils.hpp | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/src/other_tools/just_mr/utils.hpp b/src/other_tools/just_mr/utils.hpp index fa7c82b7..36a03ddf 100644 --- a/src/other_tools/just_mr/utils.hpp +++ b/src/other_tools/just_mr/utils.hpp @@ -45,15 +45,16 @@ std::vector<std::string> const kTakeOver = {"bindings", "expression_file_name"}; struct JustSubCmdFlags { - bool config; // requires setup - bool build_root; // supports the local build root arg - bool launch; // supports the local launcher arg - bool defines; // supports defines arg - bool remote; // supports remote exec args - bool serve; // supports a serve endpoint - bool dispatch; // supports dispatching of the remote-execution endpoint - bool cacert; // supports CA cert arg - bool client_auth; // supports client auth args + bool config; // requires setup + bool build_root; // supports the local build root arg + bool launch; // supports the local launcher arg + bool defines; // supports defines arg + bool remote; // supports remote exec args + bool remote_props; // supports remote-execution properties + bool serve; // supports a serve endpoint + bool dispatch; // supports dispatching of the remote-execution endpoint + bool cacert; // supports CA cert arg + bool client_auth; // supports client auth args }; // ordered, so that we have replicability @@ -64,6 +65,7 @@ std::map<std::string, JustSubCmdFlags> const kKnownJustSubcommands{ .launch = false, .defines = false, .remote = false, + .remote_props = false, .serve = false, .dispatch = false, .cacert = false, @@ -74,6 +76,7 @@ std::map<std::string, JustSubCmdFlags> const kKnownJustSubcommands{ .launch = false, .defines = true, .remote = false, + .remote_props = false, .serve = false, .dispatch = false, .cacert = false, @@ -84,6 +87,7 @@ std::map<std::string, JustSubCmdFlags> const kKnownJustSubcommands{ .launch = false, .defines = true, .remote = true, + .remote_props = true, .serve = true, .dispatch = true, .cacert = false, @@ -94,6 +98,7 @@ std::map<std::string, JustSubCmdFlags> const kKnownJustSubcommands{ .launch = true, .defines = true, .remote = true, + .remote_props = true, .serve = true, .dispatch = true, .cacert = true, @@ -104,6 +109,7 @@ std::map<std::string, JustSubCmdFlags> const kKnownJustSubcommands{ .launch = true, .defines = true, .remote = true, + .remote_props = true, .serve = true, .dispatch = true, .cacert = true, @@ -114,6 +120,7 @@ std::map<std::string, JustSubCmdFlags> const kKnownJustSubcommands{ .launch = true, .defines = true, .remote = true, + .remote_props = true, .serve = true, .dispatch = true, .cacert = true, @@ -124,6 +131,7 @@ std::map<std::string, JustSubCmdFlags> const kKnownJustSubcommands{ .launch = false, .defines = false, .remote = true, + .remote_props = false, .serve = false, .dispatch = false, .cacert = true, @@ -134,6 +142,7 @@ std::map<std::string, JustSubCmdFlags> const kKnownJustSubcommands{ .launch = false, .defines = false, .remote = false, + .remote_props = false, .serve = false, .dispatch = false, .cacert = false, |