summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/remote/bazel/bazel_api.hpp
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.hpp
parentfc0c842eb2e938c7de405e365ff320eb28e04bc7 (diff)
downloadjustbuild-f192705cb4834252507d228e7d6e0a38095976e3.tar.gz
ExecutionApi: Return TmpDir
Diffstat (limited to 'src/buildtool/execution_api/remote/bazel/bazel_api.hpp')
-rw-r--r--src/buildtool/execution_api/remote/bazel/bazel_api.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/buildtool/execution_api/remote/bazel/bazel_api.hpp b/src/buildtool/execution_api/remote/bazel/bazel_api.hpp
index 633d9d85..df60204f 100644
--- a/src/buildtool/execution_api/remote/bazel/bazel_api.hpp
+++ b/src/buildtool/execution_api/remote/bazel/bazel_api.hpp
@@ -36,6 +36,7 @@
#include "src/buildtool/execution_api/common/execution_action.hpp"
#include "src/buildtool/execution_api/common/execution_api.hpp"
#include "src/buildtool/execution_engine/dag/dag.hpp"
+#include "src/utils/cpp/tmp_dir.hpp"
// forward declaration for actual implementations
class BazelNetwork;
@@ -49,7 +50,8 @@ class BazelApi final : public IExecutionApi {
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;
BazelApi(BazelApi const&) = delete;
BazelApi(BazelApi&& other) noexcept;
auto operator=(BazelApi const&) -> BazelApi& = delete;
@@ -124,6 +126,8 @@ class BazelApi final : public IExecutionApi {
[[nodiscard]] auto GetHashType() const noexcept -> HashFunction::Type final;
+ [[nodiscard]] auto GetTempSpace() const noexcept -> TmpDir::Ptr final;
+
private:
std::shared_ptr<BazelNetwork> network_;