From 9d30f04f8fb16643b470248b252654846a7126f7 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 25 May 2023 16:11:11 +0200 Subject: utils: Relocate the std::filesystem::hash_value libc fix... ...and make the use of std::hash consistent. This will make it easier to remove the fix once the libc implementation we use catches up with the C++ standard. --- src/buildtool/build_engine/target_map/utils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/buildtool/build_engine/target_map/utils.cpp') diff --git a/src/buildtool/build_engine/target_map/utils.cpp b/src/buildtool/build_engine/target_map/utils.cpp index 24e0e8a7..050749de 100644 --- a/src/buildtool/build_engine/target_map/utils.cpp +++ b/src/buildtool/build_engine/target_map/utils.cpp @@ -20,6 +20,7 @@ #include #include "src/utils/cpp/path.hpp" +#include "src/utils/cpp/path_hash.hpp" auto BuildMaps::Target::Utils::obtainTargetByName( const SubExprEvaluator& eval, @@ -111,7 +112,7 @@ auto BuildMaps::Target::Utils::tree_conflict(const ExpressionPtr& map) struct PathHash { auto operator()(std::filesystem::path const& p) const noexcept -> std::size_t { - return std::filesystem::hash_value(p); + return std::hash{}(p); } }; std::unordered_set blocked{}; -- cgit v1.2.3