From f192705cb4834252507d228e7d6e0a38095976e3 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Fri, 21 Feb 2025 15:18:58 +0100 Subject: ExecutionApi: Return TmpDir --- src/buildtool/execution_api/remote/bazel/bazel_api.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/buildtool/execution_api/remote/bazel/bazel_api.cpp') diff --git a/src/buildtool/execution_api/remote/bazel/bazel_api.cpp b/src/buildtool/execution_api/remote/bazel/bazel_api.cpp index b2f145b0..08fc8e99 100644 --- a/src/buildtool/execution_api/remote/bazel/bazel_api.cpp +++ b/src/buildtool/execution_api/remote/bazel/bazel_api.cpp @@ -144,7 +144,8 @@ BazelApi::BazelApi(std::string const& instance_name, gsl::not_null const& auth, gsl::not_null const& retry_config, ExecutionConfiguration const& exec_config, - HashFunction hash_function) noexcept { + HashFunction hash_function, + TmpDir::Ptr temp_space) noexcept { network_ = std::make_shared(instance_name, host, port, @@ -152,7 +153,7 @@ BazelApi::BazelApi(std::string const& instance_name, retry_config, exec_config, hash_function, - /*temp_space=*/nullptr); + std::move(temp_space)); } // implement move constructor in cpp, where all members are complete types @@ -605,3 +606,7 @@ auto BazelApi::CreateAction( -> HashFunction::Type { return network_->GetHashFunction().GetType(); } + +[[nodiscard]] auto BazelApi::GetTempSpace() const noexcept -> TmpDir::Ptr { + return network_->GetTempSpace(); +} -- cgit v1.2.3