diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-08 11:28:13 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-16 17:51:12 +0200 |
commit | 978de9de55d9592c258052dd52dc25c788a89d78 (patch) | |
tree | dff959d84f1d95af1f0546471d3b2c7eaa47dbc2 /src/other_tools/just_mr/setup_utils.hpp | |
parent | b4cd4d0c0d1b526eab3549c9cba12179dbba3a3f (diff) | |
download | justbuild-978de9de55d9592c258052dd52dc25c788a89d78.tar.gz |
Remove the LocalExecutionConfig singleton
...and replace it with passed instances created early via a builder
pattern.
Diffstat (limited to 'src/other_tools/just_mr/setup_utils.hpp')
-rw-r--r-- | src/other_tools/just_mr/setup_utils.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/other_tools/just_mr/setup_utils.hpp b/src/other_tools/just_mr/setup_utils.hpp index 3043855c..f96ca81e 100644 --- a/src/other_tools/just_mr/setup_utils.hpp +++ b/src/other_tools/just_mr/setup_utils.hpp @@ -24,6 +24,7 @@ #include "src/buildtool/auth/authentication.hpp" #include "src/buildtool/build_engine/expression/configuration.hpp" #include "src/buildtool/build_engine/expression/expression_ptr.hpp" +#include "src/buildtool/execution_api/local/config.hpp" #include "src/buildtool/serve_api/remote/config.hpp" #include "src/other_tools/just_mr/cli.hpp" @@ -65,6 +66,10 @@ void DefaultReachableRepositories( MultiRepoRemoteAuthArguments const& authargs) noexcept -> std::optional<Auth>; +[[nodiscard]] auto CreateLocalExecutionConfig( + MultiRepoCommonArguments const& cargs) noexcept + -> std::optional<LocalExecutionConfig>; + void SetupRemoteConfig( std::optional<std::string> const& remote_exec_addr, std::optional<std::string> const& remote_serve_addr) noexcept; |