Skip to content

Commit c81beae

Browse files
committed
allow explicit override of use_tbb
1 parent 4c1e5c7 commit c81beae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inst/include/RcppParallel.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
#include "RcppParallel/TinyThread.h"
77

88
// Use TBB only where it's known to compile and work correctly
9+
#ifndef RCPP_PARALLEL_USE_TBB
910
#if defined(__APPLE__) || defined(__gnu_linux__)
1011
#define RCPP_PARALLEL_USE_TBB 1
1112
#include "RcppParallel/TBB.h"
1213
#else
1314
#define RCPP_PARALLEL_USE_TBB 0
1415
#endif
16+
#endif
1517

1618
#include "RcppParallel/RVector.h"
1719
#include "RcppParallel/RMatrix.h"

0 commit comments

Comments
 (0)