From 741525b63b415104aab55c5dd2d9cd1a19cc2941 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Thu, 15 Oct 2026 14:54:33 +0200 Subject: [PATCH] Improve Common PCH --- Common/Core/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Common/Core/CMakeLists.txt b/Common/Core/CMakeLists.txt index deaacfbd972..2522d1b1cce 100644 --- a/Common/Core/CMakeLists.txt +++ b/Common/Core/CMakeLists.txt @@ -38,6 +38,13 @@ o2physics_add_library(AnalysisCore # is linked here. add_library(AnalysisPCH OBJECT analysisPCH.cxx) target_link_libraries(AnalysisPCH PUBLIC O2::Framework O2Physics::AnalysisCore) +# The PCH compile is one of the heaviest translation units in the tree -- it +# instantiates the whole data model up front -- but add_library() does not +# put it in the 'analysis' job pool the way o2physics_add_dpl_workflow() does +# for the workflows. Left out, it runs unthrottled next to the pooled +# compilations and blows past the per-job memory budget the pool exists to +# enforce. +set_property(TARGET AnalysisPCH PROPERTY JOB_POOL_COMPILE analysis) if(NOT DEFINED ENV{USE_RECC}) target_precompile_headers(AnalysisPCH PRIVATE