summaryrefslogtreecommitdiff
path: root/src/buildtool/storage/target_cache_key.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-06-10 12:42:37 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-06-11 16:11:15 +0200
commit0bfe4e8c4d3f33a60143e804a0c91cb87e03625e (patch)
treed21a214eeb7ae4238dc368141098b7e8e50bfa98 /src/buildtool/storage/target_cache_key.hpp
parent4a212023247a9ed03bce90b2008f0317395c6501 (diff)
downloadjustbuild-0bfe4e8c4d3f33a60143e804a0c91cb87e03625e.tar.gz
Move creation of TargetCacheKey description to TargetCache
...to use corresponding Storage for storing auxiliary information.
Diffstat (limited to 'src/buildtool/storage/target_cache_key.hpp')
-rw-r--r--src/buildtool/storage/target_cache_key.hpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/buildtool/storage/target_cache_key.hpp b/src/buildtool/storage/target_cache_key.hpp
index d901fb9e..e5d3ee1b 100644
--- a/src/buildtool/storage/target_cache_key.hpp
+++ b/src/buildtool/storage/target_cache_key.hpp
@@ -15,23 +15,14 @@
#ifndef INCLUDED_SRC_BUILDTOOL_STORAGE_TARGET_CACHE_KEY_HPP
#define INCLUDED_SRC_BUILDTOOL_STORAGE_TARGET_CACHE_KEY_HPP
-#include <functional>
-#include <optional>
#include <utility>
-#include "src/buildtool/build_engine/base_maps/entity_name_data.hpp"
-#include "src/buildtool/build_engine/expression/configuration.hpp"
#include "src/buildtool/common/artifact.hpp"
// 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,
- Configuration const& effective_config) noexcept
- -> std::optional<TargetCacheKey>;
[[nodiscard]] auto Id() const& -> Artifact::ObjectInfo const& {
return id_;