summaryrefslogtreecommitdiff
path: root/src/buildtool/storage/target_cache_entry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/storage/target_cache_entry.cpp')
-rw-r--r--src/buildtool/storage/target_cache_entry.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buildtool/storage/target_cache_entry.cpp b/src/buildtool/storage/target_cache_entry.cpp
index 6e1f3187..e06d0caa 100644
--- a/src/buildtool/storage/target_cache_entry.cpp
+++ b/src/buildtool/storage/target_cache_entry.cpp
@@ -26,8 +26,9 @@ auto TargetCacheEntry::FromTarget(
AnalysedTargetPtr const& target,
std::unordered_map<ArtifactDescription, Artifact::ObjectInfo> const&
replacements) noexcept -> std::optional<TargetCacheEntry> {
- auto result = TargetResult{
- target->Artifacts(), target->Provides(), target->RunFiles()};
+ auto result = TargetResult{.artifact_stage = target->Artifacts(),
+ .provides = target->Provides(),
+ .runfiles = target->RunFiles()};
if (auto desc = result.ReplaceNonKnownAndToJson(replacements)) {
return TargetCacheEntry{*desc};
}