Skip to content

Commit 12ea721

Browse files
committed
tweaks (support alternate build types)
1 parent 2eb2249 commit 12ea721

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.gitignore

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

15+
src/tbb/build
16+
src/tbb/build-tbb
17+
1518
R/tbb-autodetected.R
1619

src/install.libs.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,12 @@ useBundledTbb <- function() {
103103
stop("error building tbb (status code ", status, ")")
104104
}
105105

106+
tbbFiles <- list.files(pattern = "libtbb.so", recursive = TRUE)
107+
tbbDir <- dirname(tbbFiles[[1L]])
108+
106109
dir.create("tbb/build", showWarnings = FALSE)
107-
system("mv tbb/build-tbb/*_relwithdebinfo tbb/build/lib_release")
108-
system("rm -rf tbb/build-tbb")
110+
file.rename(tbbDir, "tbb/build/lib_release")
111+
unlink("tbb/build-tbb", recursive = TRUE)
109112
writeLines("*** finished building tbb")
110113

111114
}

0 commit comments

Comments
 (0)