summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/storage/compactifier.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/storage/compactifier.cpp b/src/buildtool/storage/compactifier.cpp
index 916a131a..264312f5 100644
--- a/src/buildtool/storage/compactifier.cpp
+++ b/src/buildtool/storage/compactifier.cpp
@@ -156,7 +156,7 @@ template <ObjectType kType>
}
// Calculate reference hash size:
- auto const kHashSize = HashFunction::Instance().Hasher().GetHashLength();
+ auto const kHashSize = task.cas.GetHashFunction().Hasher().GetHashLength();
auto const kFileNameSize =
kHashSize - FileStorageData::kDirectoryNameLength;
@@ -272,7 +272,7 @@ template <ObjectType kType>
// Calculate the digest for the entry:
auto const digest =
- ArtifactDigest::CreateFromFile<kType>(HashFunction::Instance(), path);
+ ArtifactDigest::CreateFromFile<kType>(task.cas.GetHashFunction(), path);
if (not digest) {
task.Log(LogLevel::Error,
"Failed to calculate digest for {}",