diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-05-25 16:11:11 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-05-31 15:21:02 +0200 |
commit | 9d30f04f8fb16643b470248b252654846a7126f7 (patch) | |
tree | a0d216e17a88bcf0f1f44340dfeca92e53e1d433 /src/buildtool/build_engine/target_map/utils.cpp | |
parent | 26e7149fe8cc1be820ab35ebb6b92a683f9809bb (diff) | |
download | justbuild-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.cpp | 3 |
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{}; |