summaryrefslogtreecommitdiff
path: root/src/buildtool/build_engine/target_map/utils.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-05-25 16:11:11 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-05-31 15:21:02 +0200
commit9d30f04f8fb16643b470248b252654846a7126f7 (patch)
treea0d216e17a88bcf0f1f44340dfeca92e53e1d433 /src/buildtool/build_engine/target_map/utils.cpp
parent26e7149fe8cc1be820ab35ebb6b92a683f9809bb (diff)
downloadjustbuild-9d30f04f8fb16643b470248b252654846a7126f7.tar.gz
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.
Diffstat (limited to 'src/buildtool/build_engine/target_map/utils.cpp')
-rw-r--r--src/buildtool/build_engine/target_map/utils.cpp3
1 files changed, 2 insertions, 1 deletions
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 <vector>
#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<std::filesystem::path>{}(p);
}
};
std::unordered_set<std::filesystem::path, PathHash> blocked{};