mirror of
https://github.com/NixOS/nix
synced 2025-06-25 02:21:16 +02:00
Move the InputCache to EvalState
This commit is contained in:
parent
e3042f10af
commit
4966217b6a
7 changed files with 16 additions and 13 deletions
|
@ -19,6 +19,7 @@
|
|||
#include "nix/util/url.hh"
|
||||
#include "nix/fetchers/fetch-to-store.hh"
|
||||
#include "nix/fetchers/tarball.hh"
|
||||
#include "nix/fetchers/input-cache.hh"
|
||||
|
||||
#include "parser-tab.hh"
|
||||
|
||||
|
@ -310,6 +311,7 @@ EvalState::EvalState(
|
|||
)}
|
||||
, store(store)
|
||||
, buildStore(buildStore ? buildStore : store)
|
||||
, inputCache(fetchers::InputCache::create())
|
||||
, debugRepl(nullptr)
|
||||
, debugStop(false)
|
||||
, trylevel(0)
|
||||
|
@ -1152,6 +1154,7 @@ void EvalState::resetFileCache()
|
|||
{
|
||||
fileEvalCache.clear();
|
||||
fileParseCache.clear();
|
||||
inputCache->clear();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue