From 5be17a4b96fa4dbd512da4cba59f177cdbd84935 Mon Sep 17 00:00:00 2001 From: Pamplemousse Date: Fri, 25 Jun 2021 15:57:37 -0700 Subject: [PATCH] Allow to compile after `./configure --enable-gc=no` Signed-off-by: Pamplemousse --- src/libexpr/eval.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index ef9f8efca..ceca6e16b 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -64,7 +64,11 @@ static char * dupStringWithLen(const char * s, size_t size) RootValue allocRootValue(Value * v) { +#if HAVE_BOEHMGC return std::allocate_shared(traceable_allocator(), v); +#else + return std::make_shared(v); +#endif }