diff options
Diffstat (limited to 'src/buildtool/execution_api/remote/bazel/bazel_api.cpp')
-rw-r--r-- | src/buildtool/execution_api/remote/bazel/bazel_api.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
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<Auth const*> const& auth, gsl::not_null<RetryConfig const*> const& retry_config, ExecutionConfiguration const& exec_config, - HashFunction hash_function) noexcept { + HashFunction hash_function, + TmpDir::Ptr temp_space) noexcept { network_ = std::make_shared<BazelNetwork>(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(); +} |