Skip to content

Commit 38de635

Browse files
committed
maintain compatibility with rstan
1 parent c0b0ea5 commit 38de635

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

R/tbb.R

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,13 @@ tbbLdFlags <- function() {
9898
}
9999

100100
tbbRoot <- function() {
101+
102+
# TODO: rstan
103+
# parts <- c("libs", if (nzchar(rArch)) rArch, "tbb")
104+
101105
rArch <- .Platform$r_arch
102-
parts <- c("libs", if (nzchar(rArch)) rArch, "tbb")
106+
parts <- c("lib/tbb", if (nzchar(rArch)) rArch)
103107
libDir <- paste(parts, collapse = "/")
104108
system.file(libDir, package = "RcppParallel")
109+
105110
}

src/install.libs.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
file.copy("symbols.rds", dest, overwrite = TRUE)
1111

1212
# copy tbb
13-
tbbDest <- file.path(dest, "tbb")
13+
# TODO: use 'dest' library directory once rstan is updated
14+
tbbDest <- file.path(R_PACKAGE_DIR, "lib/tbb", R_ARCH)
1415
dir.create(tbbDest, recursive = TRUE, showWarnings = FALSE)
1516

1617
# check for bundled vs. system tbb

0 commit comments

Comments
 (0)