Skip to content

Commit dcafedc

Browse files
authored
[Common] Improve Common PCH (#18314)
1 parent 6a6b264 commit dcafedc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎Common/Core/CMakeLists.txt‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ o2physics_add_library(AnalysisCore
3838
# is linked here.
3939
add_library(AnalysisPCH OBJECT analysisPCH.cxx)
4040
target_link_libraries(AnalysisPCH PUBLIC O2::Framework O2Physics::AnalysisCore)
41+
# The PCH compile is one of the heaviest translation units in the tree -- it
42+
# instantiates the whole data model up front -- but add_library() does not
43+
# put it in the 'analysis' job pool the way o2physics_add_dpl_workflow() does
44+
# for the workflows. Left out, it runs unthrottled next to the pooled
45+
# compilations and blows past the per-job memory budget the pool exists to
46+
# enforce.
47+
set_property(TARGET AnalysisPCH PROPERTY JOB_POOL_COMPILE analysis)
4148
if(NOT DEFINED ENV{USE_RECC})
4249
target_precompile_headers(AnalysisPCH PRIVATE
4350
<Framework/ASoA.h>

0 commit comments

Comments
 (0)