From 5618a02bd7ca4107f545e07a19b8a0762f31e45a Mon Sep 17 00:00:00 2001 From: Mattias Ellert Date: Mon, 16 Aug 2021 19:45:00 +0200 Subject: [PATCH] Reduce memory usage for all builds - not only debug builds --- core/metacling/src/CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/metacling/src/CMakeLists.txt b/core/metacling/src/CMakeLists.txt index 8cbbe4ba08..f205b24602 100644 --- a/core/metacling/src/CMakeLists.txt +++ b/core/metacling/src/CMakeLists.txt @@ -107,11 +107,8 @@ ROOT_LINKER_LIBRARY(Cling $ LIBRARIES ${CLING_LIBRARIES} ${LINK_LIBS} ${CLING_PLUGIN_LINK_LIBS}) -string(TOUPPER "${LLVM_BUILD_TYPE}" THE_BUILD_TYPE) -if("${THE_BUILD_TYPE}" STREQUAL DEBUG OR "${THE_BUILD_TYPE}" STREQUAL RELWITHDEBINFO) - # When these two link at the same time, they can exhaust the RAM on many machines, since they both link against llvm. - add_dependencies(Cling rootcling_stage1) -endif() +# When these two link at the same time, they can exhaust the RAM on many machines, since they both link against llvm. +add_dependencies(Cling rootcling_stage1) if(MSVC) set_target_properties(Cling PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE) -- 2.35.1