Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Unity-Technologies/bdwgc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-04-13 17:45:59 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-04-13 17:45:59 +0300
commitbde2af900d7c4b6f7a4c7586f40ed8daf177600d (patch)
tree26f08ac7fbf847e67d7016256f5dc73ff1d28842 /CMakeLists.txt
parent32479d59c42938e2eb8d313fec55b736d650e793 (diff)
Allow gc_assertions enabling in CMake script
* CMakeLists.txt (enable_gc_assertions): New OPTION, off by default. * CMakeLists.txt [enable_gc_assertions] (GC_ASSERTIONS): Define macro.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 874b51e9..90501cbe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -180,6 +180,11 @@ IF(enable_large_config)
ADD_DEFINITIONS("-DLARGE_CONFIG")
ENDIF(enable_large_config)
+OPTION(enable_gc_assertions "Enable collector-internal assertion checking" NO)
+IF(enable_gc_assertions)
+ ADD_DEFINITIONS("-DGC_ASSERTIONS")
+ENDIF(enable_gc_assertions)
+
OPTION(enable_checksums "Report erroneously cleared dirty bits" NO)
IF(enable_checksums)
IF(enable_threads)