]> granicus.if.org Git - gc/commitdiff
Allow register_main_static_data disabling in CMake script
authorIvan Maidanski <ivmai@mail.ru>
Tue, 31 Jul 2018 06:58:31 +0000 (09:58 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 31 Jul 2018 06:58:31 +0000 (09:58 +0300)
* CMakeLists.txt (enable_register_main_static_data): New OPTION (on by
default).
* CMakeLists.txt [!enable_register_main_static_data]: Define
GC_DONT_REGISTER_MAIN_STATIC_DATA macro.

CMakeLists.txt

index 3fe56fd59a731856ed6987cd6a542863ee40313e..9ee035040c5dece44ecf54f2936a3afad25ba134 100644 (file)
@@ -208,6 +208,11 @@ IF(NOT enable_dynamic_loading)
     ADD_DEFINITIONS("-DIGNORE_DYNAMIC_LOADING")
 ENDIF()
 
+OPTION(enable_register_main_static_data "Perform the initial guess of data root sets" ON)
+IF(NOT enable_register_main_static_data)
+    ADD_DEFINITIONS("-DGC_DONT_REGISTER_MAIN_STATIC_DATA")
+ENDIF()
+
 OPTION(enable_large_config "Optimize for large heap or root set" NO)
 IF(enable_large_config)
     ADD_DEFINITIONS("-DLARGE_CONFIG")