summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-07-30 23:58:21 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-07-31 09:47:59 +0300
commit92c445197ff423a4941a20fedf7325b29ef99202 (patch)
tree3920319b9e5c7c8aa7094b9b28bf3a06f4895925 /CMakeLists.txt
parent01e552df9fedc7b075092910bfe32531efc75a83 (diff)
downloadbdwgc-92c445197ff423a4941a20fedf7325b29ef99202.tar.gz
Allow threads_discovery disabling in CMake script
* CMakeLists.txt (enable_threads_discovery): New OPTION (on by default). * CMakeLists.txt [!enable_threads_discovery]: Define GC_NO_THREADS_DISCOVERY 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 044c4518..d6c113c4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -209,6 +209,11 @@ IF(enable_gc_assertions)
ADD_DEFINITIONS("-DGC_ASSERTIONS")
ENDIF(enable_gc_assertions)
+OPTION(enable_threads_discovery "Enable threads discovery in GC" ON)
+IF(NOT enable_threads_discovery)
+ ADD_DEFINITIONS("-DGC_NO_THREADS_DISCOVERY")
+ENDIF()
+
OPTION(enable_checksums "Report erroneously cleared dirty bits" NO)
IF(enable_checksums)
IF(enable_munmap OR enable_threads)