summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2023-07-26 14:43:52 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-07-26 15:35:19 +0200
commit57d3222a4ff1ab3cc64e0d33d721a30827b684e3 (patch)
treead85c523bc482f0799e5cdaba92f435e007a0713 /src/buildtool/execution_api/remote/bazel/bazel_api.cpp
parent46046066c6004c6cca363c1c11e13de650e9e101 (diff)
downloadjustbuild-57d3222a4ff1ab3cc64e0d33d721a30827b684e3.tar.gz
remote api: honor the --raw-tree option
Diffstat (limited to 'src/buildtool/execution_api/remote/bazel/bazel_api.cpp')
-rw-r--r--src/buildtool/execution_api/remote/bazel/bazel_api.cpp4
1 files changed, 2 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 f4fd3b1f..c4f170a3 100644
--- a/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
+++ b/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
@@ -142,7 +142,7 @@ auto BazelApi::CreateAction(
[[nodiscard]] auto BazelApi::RetrieveToFds(
std::vector<Artifact::ObjectInfo> const& artifacts_info,
std::vector<int> const& fds,
- bool /*raw_tree*/) noexcept -> bool {
+ bool raw_tree) noexcept -> bool {
if (artifacts_info.size() != fds.size()) {
Logger::Log(LogLevel::Error,
"different number of digests and file descriptors.");
@@ -154,7 +154,7 @@ auto BazelApi::CreateAction(
auto const& info = artifacts_info[i];
if (gsl::owner<FILE*> out = fdopen(fd, "wb")) { // NOLINT
- auto const success = network_->DumpToStream(info, out);
+ auto const success = network_->DumpToStream(info, out, raw_tree);
std::fclose(out);
if (not success) {
Logger::Log(LogLevel::Error,