From: Ivan Maidanski Date: Tue, 31 Jul 2018 06:58:31 +0000 (+0300) Subject: Allow register_main_static_data disabling in CMake script X-Git-Tag: v8.0.0~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8264a948e6e381d6a59b1da09cc4daedb6c75cd8;p=gc Allow register_main_static_data disabling in CMake script * 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. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 3fe56fd5..9ee03504 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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")