summaryrefslogtreecommitdiff
path: root/src/buildtool/serve_api/remote/target_client.hpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2025-01-17 12:51:04 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-01-22 10:34:26 +0100
commit70393c8717c7b3b192928e652e103f12ff89a483 (patch)
treec4f5435f43211c3ee1085fa9a82eb97cbad58de9 /src/buildtool/serve_api/remote/target_client.hpp
parent00e8ed202907cbbd73172230e3829f80f0b04e6c (diff)
downloadjustbuild-70393c8717c7b3b192928e652e103f12ff89a483.tar.gz
serve client: support keep_artifact_root
Diffstat (limited to 'src/buildtool/serve_api/remote/target_client.hpp')
-rw-r--r--src/buildtool/serve_api/remote/target_client.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildtool/serve_api/remote/target_client.hpp b/src/buildtool/serve_api/remote/target_client.hpp
index 21059f2a..0a30a756 100644
--- a/src/buildtool/serve_api/remote/target_client.hpp
+++ b/src/buildtool/serve_api/remote/target_client.hpp
@@ -67,7 +67,8 @@ class TargetClient {
/// \returns A correspondingly populated result union, or nullopt if remote
/// reported that the target was not found.
[[nodiscard]] auto ServeTarget(const TargetCacheKey& key,
- const ArtifactDigest& repo_key)
+ const ArtifactDigest& repo_key,
+ bool keep_artifact_root = false)
const noexcept -> std::optional<serve_target_result_t>;
/// \brief Retrieve the flexible config variables of an export target.