]> granicus.if.org Git - gc/commit
Allow gc_debug, redirect_malloc, large_config options in CMake script
authorIvan Maidanski <ivmai@mail.ru>
Fri, 13 Apr 2018 14:40:35 +0000 (17:40 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 13 Apr 2018 14:40:35 +0000 (17:40 +0300)
commit32479d59c42938e2eb8d313fec55b736d650e793
tree27a31b92376c78bfa41ea8dde857400b7cfc65f1
parent2add7098e68bb0c41f152113a71d062f2abe2f41
Allow gc_debug, redirect_malloc, large_config options in CMake script

* CMakeLists.txt (enable_gc_debug, enable_redirect_malloc,
enable_large_config): New OPTION (off by default).
* CMakeLists.txt [enable_gc_debug] (DBG_HDRS_ALL, KEEP_BACK_PTRS):
Define macro.
* CMakeLists.txt [enable_redirect_malloc] (REDIRECT_MALLOC,
REDIRECT_REALLOC, REDIRECT_FREE, GC_USE_DLOPEN_WRAP): Likewise.
* CMakeLists.txt [enable_large_config] (LARGE_CONFIG): Likewise.
* CMakeLists.txt [enable_gc_debug] (MAKE_BACK_GRAPH): Define macro if
host is Linux or DG/UX.
* CMakeLists.txt [enable_gc_debug] (SAVE_CALL_COUNT): Define macro to 8
if host is Linux.
* CMakeLists.txt [enable_gc_debug] (SRC): Add backgraph.c if host is
Linux or DG/UX.
CMakeLists.txt