mirror of
https://github.com/NixOS/nix
synced 2025-07-08 15:13:55 +02:00
nix repl: Scan NixRepl for GC roots
Fixes #3175.
(cherry picked from commit b244e65cdb
)
Signed-off-by: Domen Kožar <domen@dev.si>
This commit is contained in:
parent
d2008f2fff
commit
96310a4d7d
1 changed files with 4 additions and 1 deletions
|
@ -31,6 +31,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"
|
||||
|
@ -41,7 +44,7 @@ namespace nix {
|
|||
#define ESC_CYA "\033[36m"
|
||||
#define ESC_END "\033[0m"
|
||||
|
||||
struct NixRepl
|
||||
struct NixRepl : gc
|
||||
{
|
||||
string curDir;
|
||||
EvalState state;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue