Skip to content

Commit cddf250

Browse files
committed
tweak copy patterns
1 parent b42cdd0 commit cddf250

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/Makevars.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ ifeq ($(USE_TBB), SunOS)
114114
endif
115115

116116
# Write compilation output to file, and log it if installation fails.
117-
ifneq ($(OS), Windows_NT)
118-
MAKE_ARGS += > tbb.log 2>&1 && echo "(tbb) TBB successfully built and installed." || cat tbb.log; rm -f tbb.log
119-
endif
117+
MAKE_ARGS += > tbb.log 2>&1 \
118+
&& echo "(tbb) TBB successfully built and installed." \
119+
|| cat tbb.log; rm -f tbb.log
120120

121121
.PHONY: all tbb tbb-clean
122122

src/install.libs.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020
if (is.na(tbbLib) && !is.na(tbbRoot))
2121
tbbLib <- file.path(tbbRoot, "lib")
2222

23+
shlibPattern <- "[.](?:so|dylib|dll)$"
24+
2325
if (is.na(tbbLib)) {
2426

2527
# using bundled TBB
2628
tbbLibs <- list.files(
2729
path = "tbb/build/lib_release",
28-
pattern = "^libtbb",
30+
pattern = shlibPattern,
2931
full.names = TRUE
3032
)
3133

@@ -37,7 +39,7 @@
3739
# using system tbb
3840
tbbLibs <- list.files(
3941
path = tbbLib,
40-
pattern = "[.](?:so|dylib|dll)$",
42+
pattern = shlibPattern,
4143
full.names = TRUE
4244
)
4345

0 commit comments

Comments
 (0)