diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc index 34de2160a..525c25560 100644 --- a/src/libcmd/repl.cc +++ b/src/libcmd/repl.cc @@ -141,7 +141,11 @@ struct NixRepl * Note: This is `shared_ptr` to avoid garbage collection. */ std::shared_ptr replOverlaysEvalFunction = + #if HAVE_BOEHMGC std::allocate_shared(traceable_allocator(), nullptr); + #else + std::make_shared(nullptr); + #endif /** * Get the `info` AttrSet that's passed as the first argument to each