nix repl: Scan NixRepl for GC roots

Fixes #3175.
This commit is contained in:
Eelco Dolstra 2020-03-19 13:50:01 +01:00
parent b79b81dd2d
commit b244e65cdb
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -32,6 +32,9 @@ extern "C" {
#include "command.hh"
#include "finally.hh"
#define GC_INCLUDE_NEW
#include <gc/gc_cpp.h>
namespace nix {
#define ESC_RED "\033[31m"
@ -42,7 +45,7 @@ namespace nix {
#define ESC_CYA "\033[36m"
#define ESC_END "\033[0m"
struct NixRepl
struct NixRepl : gc
{
string curDir;
EvalState state;