diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-25 14:53:18 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-30 12:10:06 +0200 |
commit | 8669d48933731f224474a9b1dc55824f87ae26a7 (patch) | |
tree | 7d097fdf3f89e5fc88899c8e7f4723a4870f3e60 /src/buildtool/main/main.cpp | |
parent | 69f56ad981da59f026c83b321522ad68283934c5 (diff) | |
download | justbuild-8669d48933731f224474a9b1dc55824f87ae26a7.tar.gz |
Use LocalContext in execution and serve services
The context is passed by not_null const pointer in order to avoid
binding to temporaries, and it or parts of it get stored by const
ref where needed.
Diffstat (limited to 'src/buildtool/main/main.cpp')
-rw-r--r-- | src/buildtool/main/main.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp index 774f1356..1676cbb4 100644 --- a/src/buildtool/main/main.cpp +++ b/src/buildtool/main/main.cpp @@ -822,8 +822,7 @@ auto main(int argc, char* argv[]) -> int { &retry_config, &remote_exec_config}; - return execution_server->Run(*storage_config, - storage, + return execution_server->Run(&local_context, exec_apis, arguments.service.op_exponent) ? kExitSuccess @@ -894,9 +893,7 @@ auto main(int argc, char* argv[]) -> int { with_execute ? arguments.service.op_exponent : std::nullopt; return serve_server->Run(*serve_config, - *storage_config, - storage, - *local_exec_config, + &local_context, serve, serve_apis, op_exponent, |