diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-17 09:20:48 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-22 17:02:34 +0200 |
commit | 0b80611163ffedb87dc2305320906f27e502cbcd (patch) | |
tree | b80639687445a174fe4ac31b63725bb685bced8f /src/buildtool/build_engine/target_map/utils.cpp | |
parent | ed8e56fa64bec6cb055b3d69022690a8a13d92ff (diff) | |
download | justbuild-0b80611163ffedb87dc2305320906f27e502cbcd.tar.gz |
Unify tagging logic in HashFunction
Diffstat (limited to 'src/buildtool/build_engine/target_map/utils.cpp')
-rw-r--r-- | src/buildtool/build_engine/target_map/utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/build_engine/target_map/utils.cpp b/src/buildtool/build_engine/target_map/utils.cpp index cb7ad42d..742a5e2f 100644 --- a/src/buildtool/build_engine/target_map/utils.cpp +++ b/src/buildtool/build_engine/target_map/utils.cpp @@ -187,7 +187,7 @@ auto BuildMaps::Target::Utils::getTainted( namespace { auto hash_vector(HashFunction hash_function, std::vector<std::string> const& vec) -> std::string { - auto hasher = hash_function.Hasher(); + auto hasher = hash_function.MakeHasher(); for (auto const& s : vec) { hasher.Update(hash_function.ComputeHash(s).Bytes()); } @@ -208,7 +208,7 @@ auto BuildMaps::Target::Utils::createAction( // The type of HashFunction is irrelevant here. It is used for // identification and quick comparison of descriptions. SHA256 is used. HashFunction hash_function{HashFunction::JustHash::Compatible}; - auto hasher = hash_function.Hasher(); + auto hasher = hash_function.MakeHasher(); hasher.Update(hash_vector(hash_function, output_files)); hasher.Update(hash_vector(hash_function, output_dirs)); |