mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
Provide std::hash<SourcePath>
This commit is contained in:
parent
337a5a23b7
commit
cdc23b67a6
3 changed files with 19 additions and 8 deletions
|
@ -1011,7 +1011,7 @@ void EvalState::evalFile(const SourcePath & path, Value & v, bool mustBeTrivial)
|
|||
if (!e)
|
||||
e = parseExprFromFile(resolvedPath);
|
||||
|
||||
fileParseCache[resolvedPath] = e;
|
||||
fileParseCache.emplace(resolvedPath, e);
|
||||
|
||||
try {
|
||||
auto dts = debugRepl
|
||||
|
@ -1034,8 +1034,8 @@ void EvalState::evalFile(const SourcePath & path, Value & v, bool mustBeTrivial)
|
|||
throw;
|
||||
}
|
||||
|
||||
fileEvalCache[resolvedPath] = v;
|
||||
if (path != resolvedPath) fileEvalCache[path] = v;
|
||||
fileEvalCache.emplace(resolvedPath, v);
|
||||
if (path != resolvedPath) fileEvalCache.emplace(path, v);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue