diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-20 10:44:52 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-25 13:59:48 +0200 |
commit | c7f83a2d2fa436bf78911e288e1f07576861601e (patch) | |
tree | bfa8e4c990473a9e0f2a36eb444a03dfb9713e87 /src/buildtool/main/main.cpp | |
parent | 18092e2ff2d33f9f7c25eec995ffb4ac824fe96c (diff) | |
download | justbuild-c7f83a2d2fa436bf78911e288e1f07576861601e.tar.gz |
Pass ApiBundle to ServeApi
Diffstat (limited to 'src/buildtool/main/main.cpp')
-rw-r--r-- | src/buildtool/main/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp index 1043de94..6f9c68ad 100644 --- a/src/buildtool/main/main.cpp +++ b/src/buildtool/main/main.cpp @@ -841,7 +841,7 @@ auto main(int argc, char* argv[]) -> int { if (serve_server) { ApiBundle const serve_apis{ std::nullopt, RemoteExecutionConfig::RemoteAddress()}; - auto serve = ServeApi::Create(*serve_config); + auto serve = ServeApi::Create(*serve_config, &serve_apis); bool with_execute = not RemoteExecutionConfig::RemoteAddress(); return serve_server->Run( *serve_config, serve, serve_apis, with_execute) @@ -928,7 +928,8 @@ auto main(int argc, char* argv[]) -> int { DetermineRoots(&repo_config, arguments.common, arguments.analysis); #ifndef BOOTSTRAP_BUILD_TOOL - std::optional<ServeApi> serve = ServeApi::Create(*serve_config); + std::optional<ServeApi> serve = + ServeApi::Create(*serve_config, &main_apis); #else std::optional<ServeApi> serve; #endif // BOOTSTRAP_BUILD_TOOL |