Skip to content

Commit 2c6431d

Browse files
authored
Merge pull request #2890 from stan-dev/fix/tbb-gcc13-build
Backport tbb fix for building on gcc 13
2 parents 6cd15b8 + e9fa216 commit 2c6431d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

lib/tbb_2020.3/STAN_CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
This file documents changes done for the stan-math project
22

33
- drop -g flag from makefiles for release mode builds to decrease size of binaries
4+
- Add `tbb::` to line 252 of `task.h` to fix a build failure with gcc 13. This was done upstream in https://github.com/oneapi-src/oneTBB/pull/833

lib/tbb_2020.3/include/tbb/task.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ namespace internal {
249249
#if __TBB_TASK_PRIORITY
250250
//! Pointer to the next offloaded lower priority task.
251251
/** Used to maintain a list of offloaded tasks inside the scheduler. **/
252-
task* next_offloaded;
252+
tbb::task* next_offloaded;
253253
#endif
254254

255255
#if __TBB_PREVIEW_RESUMABLE_TASKS

0 commit comments

Comments
 (0)