Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion inst/include/RcppParallel.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
// (NOTE: Windows TBB is temporarily opt-in for packages for
// compatibility with CRAN packages not previously configured
// to link to TBB in Makevars.win)
// NOTE: match Linux via __linux__ rather than __gnu_linux__; the latter is
// only defined by glibc toolchains, which left TBB disabled by default on
// musl-based systems such as Alpine Linux (https://github.com/RcppCore/RcppParallel/issues/231)
#ifndef RCPP_PARALLEL_USE_TBB
# if defined(__APPLE__) || defined(__gnu_linux__) || (defined(__sun) && defined(__SVR4) && !defined(__sparc))
# if defined(__APPLE__) || defined(__linux__) || (defined(__sun) && defined(__SVR4) && !defined(__sparc))
# define RCPP_PARALLEL_USE_TBB 1
# else
# define RCPP_PARALLEL_USE_TBB 0
Expand Down
Loading