Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepare for release #197

Merged
merged 5 commits into from
Feb 27, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
^tags$
^tests/testthat/pkg/RcppParallelTest/src/.*\.dll$
^tests/testthat/pkg/RcppParallelTest/src/.*\.s?o$

^tools/tbb$
^\.github$
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ src-x64
tbb.log

R/tbb-autodetected.R
src/install.libs.R

2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: RcppParallel
Type: Package
Title: Parallel Programming Tools for 'Rcpp'
Version: 5.1.6-9000
Version: 5.1.7
Authors@R: c(
person("JJ", "Allaire", role = c("aut"), email = "[email protected]"),
person("Romain", "Francois", role = c("aut", "cph")),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

## RcppParallel 5.1.7 (UNRELEASED)
## RcppParallel 5.1.7

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

Expand Down
12 changes: 4 additions & 8 deletions src/install.libs.R → src/install.libs.R.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# !diagnostics suppress=R_PACKAGE_DIR,SHLIB_EXT,R_ARCH
.install.libs <- function() {

# get TBB library path
tbbLib <- "@TBB_LIB@"

# copy default library
files <- Sys.glob(paste0("*", SHLIB_EXT))
dest <- file.path(R_PACKAGE_DIR, paste0("libs", R_ARCH))
Expand All @@ -22,13 +25,6 @@
tbbDest <- file.path(R_PACKAGE_DIR, paste0("lib", R_ARCH))
dir.create(tbbDest, recursive = TRUE, showWarnings = FALSE)

# check for bundled vs. system tbb
tbbRoot <- Sys.getenv("TBB_ROOT", unset = NA)

tbbLib <- Sys.getenv("TBB_LIB", unset = NA)
if (is.na(tbbLib) && !is.na(tbbRoot))
tbbLib <- file.path(tbbRoot, "lib")

# note: on Linux, TBB gets compiled with extensions like
# '.so.2', so be ready to handle those
shlibPattern <- switch(
Expand All @@ -38,7 +34,7 @@
"^libtbb.*\\.so.*$"
)

if (is.na(tbbLib)) {
if (!nzchar(tbbLib)) {

# using bundled TBB
tbbLibs <- list.files(
Expand Down
5 changes: 5 additions & 0 deletions tools/config/cleanup.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@
unlink("src/tbb/build/lib_release", recursive = TRUE)
unlink("inst/lib", recursive = TRUE)
unlink("inst/libs", recursive = TRUE)
unlink("inst/include/index.html", recursive = TRUE)
unlink("inst/include/oneapi", recursive = TRUE)
unlink("inst/include/serial", recursive = TRUE)
unlink("inst/include/tbb", recursive = TRUE)

2 changes: 1 addition & 1 deletion tools/config/configure.R
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ if (!is.na(tbbLib) && is.na(tbbInc)) {
# if TBB_LIB and TBB_INC are still not defined, try auto-detecting
tryAutoDetect <-
.Platform$OS.type == "unix" &&
Sys.getenv("TBB_AUTODETECT", unset = "TRUE") == "TRUE" &&
Sys.getenv("TBB_AUTODETECT", unset = "FALSE") == "TRUE" &&
is.na(tbbLib) &&
is.na(tbbInc)

Expand Down