summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/remote/bazel/bazel_api.hpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-12-05 12:22:22 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-12-05 15:15:46 +0100
commitd40eb82b519fb17819c8e8f0827f7338bed02bf7 (patch)
treec042e5f83f30f592ef751176620eeb2c79ef04eb /src/buildtool/execution_api/remote/bazel/bazel_api.hpp
parent74096dce2ee85ea5df940155fc2717d249e14d80 (diff)
downloadjustbuild-d40eb82b519fb17819c8e8f0827f7338bed02bf7.tar.gz
execution api: support retrieving from more than one API, also for fd
Extend the api to optionally accept a different API for preferred fetching. This is already supported when fetching to a file path; therefore, extend to keep the interface symmetric.
Diffstat (limited to 'src/buildtool/execution_api/remote/bazel/bazel_api.hpp')
-rw-r--r--src/buildtool/execution_api/remote/bazel/bazel_api.hpp5
1 files changed, 4 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 3b0a1cb3..e45e0cdf 100644
--- a/src/buildtool/execution_api/remote/bazel/bazel_api.hpp
+++ b/src/buildtool/execution_api/remote/bazel/bazel_api.hpp
@@ -73,10 +73,13 @@ class BazelApi final : public IExecutionApi {
IExecutionApi const* alternative = nullptr) const noexcept
-> bool final;
+ // NOLINTNEXTLINE(google-default-arguments)
[[nodiscard]] auto RetrieveToFds(
std::vector<Artifact::ObjectInfo> const& artifacts_info,
std::vector<int> const& fds,
- bool raw_tree) const noexcept -> bool final;
+ bool raw_tree,
+ IExecutionApi const* alternative = nullptr) const noexcept
+ -> bool final;
[[nodiscard]] auto ParallelRetrieveToCas(
std::vector<Artifact::ObjectInfo> const& artifacts_info,