From 51b84e7bc21f8729de8d3e8f9ff08b337af33b78 Mon Sep 17 00:00:00 2001 From: Mattias Ellert Date: Fri, 17 Nov 2023 17:15:15 +0100 Subject: [PATCH] Avoid out of memory during linking regardless of build type --- 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 e750480eb3f11..dd50793d29b45 100644 --- a/core/metacling/src/CMakeLists.txt +++ b/core/metacling/src/CMakeLists.txt @@ -111,11 +111,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)