fixing boehm build, excluding image code when not used

This commit is contained in:
Alex Shinn 2016-02-20 23:49:28 +09:00
parent 710d1584ba
commit 11ad0c3e3d
3 changed files with 6 additions and 1 deletions

View file

@ -4,6 +4,8 @@
#include "gc_heap.h"
#if SEXP_USE_IMAGE_LOADING
#define ERR_STR_SIZE 256
char gc_heap_err_str[ERR_STR_SIZE];
@ -729,3 +731,5 @@ void sexp_gc_heap_stats_print(sexp ctx)
printf(" ========================================\n");
printf(" %6zu %7zu\n", total_count, total_size);
}
#endif /* SEXP_USE_IMAGE_LOADING */

View file

@ -1563,7 +1563,7 @@ SEXP_API sexp sexp_finalize (sexp ctx);
#if SEXP_USE_GLOBAL_HEAP
#define sexp_free_heap(heap)
#define sexp_destroy_context(ctx)
#define sexp_destroy_context(ctx) SEXP_TRUE
#else
SEXP_API void sexp_free_heap (sexp_heap heap);
SEXP_API sexp sexp_destroy_context (sexp ctx);

View file

@ -1,5 +1,6 @@
CPPFLAGS=-DSEXP_USE_MODULES=0
CPPFLAGS=-DSEXP_USE_GREEN_THREADS=0
CPPFLAGS=-DSEXP_USE_IMAGE_LOADING=0
CPPFLAGS=-DSEXP_USE_DL=0
CPPFLAGS=-DSEXP_USE_SIMPLIFY=0
CPPFLAGS=-DSEXP_USE_TYPE_DEFS=0