Skip to content

Commit 769a4e2

Browse files
authored
Merge pull request #197 from RcppCore/release/5.1.7
CRAN release 5.1.7
2 parents 6404681 + c6a0036 commit 769a4e2

File tree

7 files changed

+15
-12
lines changed

7 files changed

+15
-12
lines changed

.Rbuildignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
^tags$
1616
^tests/testthat/pkg/RcppParallelTest/src/.*\.dll$
1717
^tests/testthat/pkg/RcppParallelTest/src/.*\.s?o$
18-
18+
^tools/tbb$
1919
^\.github$

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ src-x64
1313
tbb.log
1414

1515
R/tbb-autodetected.R
16+
src/install.libs.R
17+

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: RcppParallel
22
Type: Package
33
Title: Parallel Programming Tools for 'Rcpp'
4-
Version: 5.1.6-9000
4+
Version: 5.1.7
55
Authors@R: c(
66
person("JJ", "Allaire", role = c("aut"), email = "[email protected]"),
77
person("Romain", "Francois", role = c("aut", "cph")),

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
## RcppParallel 5.1.7 (UNRELEASED)
2+
## RcppParallel 5.1.7
33

44
* Remove deprecated `std::iterator`. (#192; @Enchufa2)
55

src/install.libs.R renamed to src/install.libs.R.in

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# !diagnostics suppress=R_PACKAGE_DIR,SHLIB_EXT,R_ARCH
33
.install.libs <- function() {
44

5+
# get TBB library path
6+
tbbLib <- "@TBB_LIB@"
7+
58
# copy default library
69
files <- Sys.glob(paste0("*", SHLIB_EXT))
710
dest <- file.path(R_PACKAGE_DIR, paste0("libs", R_ARCH))
@@ -22,13 +25,6 @@
2225
tbbDest <- file.path(R_PACKAGE_DIR, paste0("lib", R_ARCH))
2326
dir.create(tbbDest, recursive = TRUE, showWarnings = FALSE)
2427

25-
# check for bundled vs. system tbb
26-
tbbRoot <- Sys.getenv("TBB_ROOT", unset = NA)
27-
28-
tbbLib <- Sys.getenv("TBB_LIB", unset = NA)
29-
if (is.na(tbbLib) && !is.na(tbbRoot))
30-
tbbLib <- file.path(tbbRoot, "lib")
31-
3228
# note: on Linux, TBB gets compiled with extensions like
3329
# '.so.2', so be ready to handle those
3430
shlibPattern <- switch(
@@ -38,7 +34,7 @@
3834
"^libtbb.*\\.so.*$"
3935
)
4036

41-
if (is.na(tbbLib)) {
37+
if (!nzchar(tbbLib)) {
4238

4339
# using bundled TBB
4440
tbbLibs <- list.files(

tools/config/cleanup.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@
55
unlink("src/tbb/build/lib_release", recursive = TRUE)
66
unlink("inst/lib", recursive = TRUE)
77
unlink("inst/libs", recursive = TRUE)
8+
unlink("inst/include/index.html", recursive = TRUE)
9+
unlink("inst/include/oneapi", recursive = TRUE)
10+
unlink("inst/include/serial", recursive = TRUE)
11+
unlink("inst/include/tbb", recursive = TRUE)
12+

tools/config/configure.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ if (!is.na(tbbLib) && is.na(tbbInc)) {
161161
# if TBB_LIB and TBB_INC are still not defined, try auto-detecting
162162
tryAutoDetect <-
163163
.Platform$OS.type == "unix" &&
164-
Sys.getenv("TBB_AUTODETECT", unset = "TRUE") == "TRUE" &&
164+
Sys.getenv("TBB_AUTODETECT", unset = "FALSE") == "TRUE" &&
165165
is.na(tbbLib) &&
166166
is.na(tbbInc)
167167

0 commit comments

Comments
 (0)