Skip to content

Commit 9bba9bd

Browse files
committed
tbb: normalizePath only if file exists
1 parent 3621177 commit 9bba9bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/build.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ tbbCxxFlags <- function() {
5353

5454
# Return the linker flags requried for TBB on this platform
5555
tbbLdFlags <- function() {
56-
tbb_path <- normalizePath(Sys.getenv("TBB_LIBRARY_FILE"))
56+
tbb_path <- Sys.getenv("TBB_LIBRARY_FILE")
5757
if (file.exists(tbb_path)) {
5858
paste("-L", asBuildPath(dirname(tbb)), " -ltbb -ltbbmalloc", sep = "")
5959
} else {
@@ -77,9 +77,9 @@ tbbLibPath <- function(suffix = "") {
7777
"SunOS" = paste("libtbb", suffix, ".so", sep = "")
7878
)
7979

80-
tbb_path <- normalizePath(Sys.getenv("TBB_LIBRARY_FILE"))
80+
tbb_path <- Sys.getenv("TBB_LIBRARY_FILE")
8181
if (file.exists(tbb_path)) {
82-
tbb_path
82+
normalizePath(tbb_path)
8383
} else {
8484
if ((sysname %in% names(tbbSupported)) && !isSparc()) {
8585
libDir <- "lib/"

0 commit comments

Comments
 (0)