mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
Fix macOS build
This commit is contained in:
parent
9ee590e113
commit
4967c5ff6b
1 changed files with 4 additions and 2 deletions
|
|
@ -85,9 +85,11 @@ bool PosixSourceAccessor::pathExists(const CanonPath & path)
|
||||||
|
|
||||||
std::optional<struct stat> PosixSourceAccessor::cachedLstat(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());
|
auto cache(_cache.lock());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue