mirror of
https://github.com/NixOS/nix.git
synced 2025-11-19 16:59:35 +01:00
Extract a Value method to set the eval cache
This commit is contained in:
parent
45a28ed36f
commit
89951cf7fb
2 changed files with 8 additions and 0 deletions
|
|
@ -1813,6 +1813,13 @@ ValueCache & Value::getEvalCache()
|
|||
|
||||
ValueCache ValueCache::empty = ValueCache(nullptr);
|
||||
|
||||
void Value::setEvalCache(ValueCache & newCache)
|
||||
{
|
||||
if (internalType == tAttrs) {
|
||||
attrs->eval_cache = newCache;
|
||||
}
|
||||
}
|
||||
|
||||
string EvalState::forceString(Value & v, PathSet & context, const Pos & pos)
|
||||
{
|
||||
string s = forceString(v, pos);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue