Skip to content

Commit e1b2cc4

Browse files
committed
tbbLibPath() uses the suffix argument
1 parent b2ae11b commit e1b2cc4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

R/build.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ tbbLibPath <- function(suffix = "") {
7979

8080
tbb_path <- Sys.getenv("TBB_LIBRARY_FILE")
8181
if (file.exists(tbb_path)) {
82-
normalizePath(tbb_path)
82+
libDir <- dirname(tbb_path)
83+
libExt <- strsplit(basename(tbb_path), split="\\.")[[1]][-1]
84+
85+
normalizePath(file.path(libDir, paste("libtbb", suffix, ".", libExt, sep = "")))
8386
} else {
8487
if ((sysname %in% names(tbbSupported)) && !isSparc()) {
8588
libDir <- "lib/"

0 commit comments

Comments
 (0)