Commit 47500e5
committed
enable tbb by default on musl-based linux (e.g. alpine)
RcppParallel.h gated the default RCPP_PARALLEL_USE_TBB on __gnu_linux__,
a glibc-only predefined macro. On musl-based systems such as Alpine, which
define __linux__ but not __gnu_linux__, the default fell through to 0 --
disabling TBB for any downstream package that does not pass
-DRCPP_PARALLEL_USE_TBB explicitly (i.e. does not use RcppParallel::CxxFlags()
in its Makevars), even when RcppParallel itself was built with a working TBB.
Match Linux via __linux__ instead, which covers both glibc and musl. This is
consistent with the bundled TBB sources, which use __linux__ broadly and only
guard on __GLIBC__ where glibc-specific behavior is required.
Fixes #2311 parent 77684de commit 47500e5
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | | - | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
0 commit comments