1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

* Make building against the Boehm GC a configure option.

This commit is contained in:
Eelco Dolstra 2010-10-22 13:39:15 +00:00
parent 76feaf016a
commit 64c3325b0b
6 changed files with 42 additions and 14 deletions

View file

@ -7,7 +7,9 @@
#include <map>
#if HAVE_BOEHMGC
#include <gc/gc_allocator.h>
#endif
namespace nix {
@ -18,7 +20,11 @@ struct Env;
struct Value;
struct Attr;
#if HAVE_BOEHMGC
typedef std::map<Symbol, Attr, std::less<Symbol>, gc_allocator<std::pair<const Symbol, Attr> > > Bindings;
#else
typedef std::map<Symbol, Attr> Bindings;
#endif
typedef enum {