Skip to content

Commit

Permalink
nix repl: Scan NixRepl for GC roots
Browse files Browse the repository at this point in the history
Fixes #3175.
  • Loading branch information
edolstra committed Mar 19, 2020
1 parent b79b81d commit b244e65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/nix/repl.cc
Expand Up @@ -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"
Expand All @@ -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;
Expand Down

0 comments on commit b244e65

Please sign in to comment.