Skip to content

Commit

Permalink
Support setting link lib only
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jan 10, 2024
1 parent 4b3f033 commit 3cba1e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/tbb.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ tbbCxxFlags <- function() {
tbbLdFlags <- function() {

# shortcut if TBB_LIB defined
tbbLib <- Sys.getenv("TBB_LIB", unset = TBB_LIB)
tbbLib <- Sys.getenv("TBB_LINK_LIB", Sys.getenv("TBB_LIB", unset = TBB_LIB))
if (nzchar(tbbLib)) {
fmt <- "-L%1$s -Wl,-rpath,%1$s -ltbb -ltbbmalloc"
return(sprintf(fmt, asBuildPath(tbbLib)))
Expand Down

0 comments on commit 3cba1e2

Please sign in to comment.