We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 969cfa6 commit f7bf0b7Copy full SHA for f7bf0b7
1 file changed
src/install.libs.R
@@ -25,14 +25,19 @@
25
if (is.na(tbbLib)) {
26
27
# using bundled TBB
28
- tbbLibs <- list.files(
29
- path = "tbb/build/lib_release",
30
- pattern = shlibPattern,
31
- full.names = TRUE
+ sysname <- Sys.info()[["sysname"]]
+
+ tbbExt <- switch(
+ sysname,
32
+ Windows = ".dll",
33
+ Darwin = ".dylib",
34
+ ".so"
35
)
36
- # copy tbb libraries
- file.copy(tbbLibs, tbbDest)
37
+ fmt <- "cp -R tbb/build/lib_release/*%s '%s/'"
38
+ cmd <- sprintf(fmt, tbbExt, tbbDest)
39
40
+ system(cmd)
41
42
} else {
43
0 commit comments