Skip to content

Commit

Permalink
Merge pull request #11558 from DeterminateSystems/fix-no-gc-build
Browse files Browse the repository at this point in the history
Fix build without GC
  • Loading branch information
edolstra authored Sep 20, 2024
2 parents c5c6855 + ec47133 commit 68ba6ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/libexpr-c/nix_api_expr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

#if HAVE_BOEHMGC
# include <mutex>
# define GC_INCLUDE_NEW 1
# include "gc_cpp.h"
#endif

nix_err nix_libexpr_init(nix_c_context * context)
Expand Down
3 changes: 2 additions & 1 deletion src/libexpr/eval-gc.hh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ template<typename T>
using gc_allocator = std::allocator<T>;

# define GC_MALLOC_ATOMIC std::malloc
# define GC_STRDUP std::strdup
# define GC_STRDUP strdup

struct gc
{};

Expand Down

0 comments on commit 68ba6ff

Please sign in to comment.