summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2025-02-21 15:18:58 +0100
committerMaksim Denisov <denisov.maksim@huawei.com>2025-03-24 09:25:05 +0100
commitf192705cb4834252507d228e7d6e0a38095976e3 (patch)
tree83040a418bc8c700cd5234d8d60f0497e2b7631f /src/buildtool/execution_api/remote/bazel/bazel_api.cpp
parentfc0c842eb2e938c7de405e365ff320eb28e04bc7 (diff)
downloadjustbuild-f192705cb4834252507d228e7d6e0a38095976e3.tar.gz
ExecutionApi: Return TmpDir
Diffstat (limited to 'src/buildtool/execution_api/remote/bazel/bazel_api.cpp')
-rw-r--r--src/buildtool/execution_api/remote/bazel/bazel_api.cpp9
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();
+}