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:
parent
76feaf016a
commit
64c3325b0b
6 changed files with 42 additions and 14 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue