nix_actor/src/nix_actor/libnix/seepuspus.hh

22 lines
444 B
C++

#pragma once
#include "eval.hh"
namespace nix {
std::shared_ptr<nix::EvalState> newEvalState(ref<Store> store)
{
auto searchPath = Strings();
auto evalState =
#if HAVE_BOEHMGC
std::allocate_shared<EvalState>(
traceable_allocator<EvalState>(), searchPath, store, store)
#else
std::make_shared<EvalState>(
searchPath, store, store)
#endif
;
return evalState;
}
}