mirror of
https://github.com/NixOS/nix
synced 2024-09-19 23:03:53 -04:00
Fix macOS build
This commit is contained in:
parent
9ee590e113
commit
4967c5ff6b
|
@ -85,9 +85,11 @@ bool PosixSourceAccessor::pathExists(const CanonPath & path)
|
|||
|
||||
std::optional<struct stat> PosixSourceAccessor::cachedLstat(const CanonPath & path)
|
||||
{
|
||||
static Sync<std::unordered_map<std::filesystem::path, std::optional<struct stat>>> _cache;
|
||||
static Sync<std::unordered_map<Path, std::optional<struct stat>>> _cache;
|
||||
|
||||
auto absPath = makeAbsPath(path);
|
||||
// Note: we convert std::filesystem::path to Path because the
|
||||
// former is not hashable on libc++.
|
||||
Path absPath = makeAbsPath(path);
|
||||
|
||||
{
|
||||
auto cache(_cache.lock());
|
||||
|
|
Loading…
Reference in a new issue