From 7f6535138079183954a8874d137adc09d5abdbff Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sat, 26 Dec 2020 12:26:42 +0300 Subject: [PATCH] Increase memory limits for ENABLE_CHECK_HEAVY_BUILDS --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 27f4f2bff27..6f5f5e16820 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,9 +68,9 @@ include (cmake/find/ccache.cmake) option(ENABLE_CHECK_HEAVY_BUILDS "Don't allow C++ translation units to compile too long or to take too much memory while compiling" OFF) if (ENABLE_CHECK_HEAVY_BUILDS) - # set DATA (since RSS does not work since 2.6.x+) to 1G + # set DATA (since RSS does not work since 2.6.x+) to 2G # set VIRT (RLIMIT_AS) to 10G (DATA*10) - set (CMAKE_CXX_COMPILER_LAUNCHER prlimit --as=10000000000 --data=1000000000 --cpu=600) + set (CMAKE_CXX_COMPILER_LAUNCHER prlimit --as=10000000000 --data=2000000000 --cpu=600) endif () if (NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "None")