fix(patches): add rstan entry to skip removed tbb_stddef.h #114

Merged
pat-s merged 1 commit from fix/rstan-tbb-stddef-patch into main 2026-07-14 13:52:18 +00:00

2026-07-14

fix(patches): add rstan entry to skip removed tbb_stddef.h
StanHeaders' init_threadpool_tbb.hpp unconditionally includes the legacy
<tbb/tbb_stddef.h> for TBB version detection, but that header was removed
in oneTBB 2021+ (the version StanHeaders now bundles), so rstan's Module.cpp
fails to compile when rstan is pulled in as a transitive dependency (e.g. of
ctsem).

Pre-define TBB_INTERFACE_NEW via CPPFLAGS so the header's own guard skips the
removed include and selects the modern tbb/global_control.h + tbb/task_arena.h
path that the bundled TBB provides. Preserve -I/usr/local/include since the
CPPFLAGS override replaces the R default.
2026-07-14 13:40:03 +00:00