summaryrefslogtreecommitdiff
path: root/src/buildtool/compatibility/compatibility.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/compatibility/compatibility.hpp')
-rw-r--r--src/buildtool/compatibility/compatibility.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buildtool/compatibility/compatibility.hpp b/src/buildtool/compatibility/compatibility.hpp
index 46f94b9a..6b3843aa 100644
--- a/src/buildtool/compatibility/compatibility.hpp
+++ b/src/buildtool/compatibility/compatibility.hpp
@@ -41,7 +41,7 @@ class Compatibility {
Instance().compatible_ = value;
auto const hasher_type = value ? HashFunction::JustHash::Compatible
: HashFunction::JustHash::Native;
- HashFunction::SetHashType(hasher_type);
+ HashFunction::Instance().SetHashType(hasher_type);
}
[[nodiscard]] static auto RegisterGitEntry(std::string const& git_hash,
@@ -59,7 +59,8 @@ class Compatibility {
}
// This is only used in compatible mode. Therefore, the default hash
// function produces the compatible hash.
- auto compatible_hash = HashFunction::ComputeHash(data).HexString();
+ auto compatible_hash =
+ HashFunction::Instance().ComputeHash(data).HexString();
std::unique_lock lock_{Instance().mutex_};
Instance().git_to_compatible_[git_hash] = compatible_hash;
Instance().compatible_to_git_[compatible_hash] = {git_hash, repo};