summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlberto Sartori <alberto.sartori@huawei.com>2023-10-09 11:03:42 +0200
committerAlberto Sartori <alberto.sartori@huawei.com>2023-11-15 20:19:18 +0100
commita4d8dfaa1e1af4be640558f5e634d1ddd0403c9d (patch)
treec6b63529531b90d127b5a1de955d277f60393f23 /src
parent85bebb45c53d19633bee482ab899723f0ab4f13c (diff)
downloadjustbuild-a4d8dfaa1e1af4be640558f5e634d1ddd0403c9d.tar.gz
TargetCacheKey: make TargetCacheKey(Artifact::ObjectInfo) constructor public
This constructor is used by TargetService::ServeTarget
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/storage/target_cache_key.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/storage/target_cache_key.hpp b/src/buildtool/storage/target_cache_key.hpp
index 70d06464..d901fb9e 100644
--- a/src/buildtool/storage/target_cache_key.hpp
+++ b/src/buildtool/storage/target_cache_key.hpp
@@ -26,6 +26,7 @@
// Key for target cache. Created from target name and effective config.
class TargetCacheKey {
public:
+ explicit TargetCacheKey(Artifact::ObjectInfo id) : id_{std::move(id)} {}
[[nodiscard]] static auto Create(
std::string const& repo_key,
BuildMaps::Base::NamedTarget const& target_name,
@@ -43,7 +44,6 @@ class TargetCacheKey {
}
private:
- explicit TargetCacheKey(Artifact::ObjectInfo id) : id_{std::move(id)} {}
Artifact::ObjectInfo id_;
};