Skip to content

Commit 02b86ca

Browse files
authored
Merge pull request #208 from jeroen/master
Two small tweaks for cross compiling
2 parents d4573c1 + 3cba1e2 commit 02b86ca

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

R/tbb.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ tbbCxxFlags <- function() {
7575
tbbLdFlags <- function() {
7676

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

src/Makevars.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ else
4040

4141
ifeq ($(UNAME), Darwin)
4242
USE_TBB=Mac
43+
MAKE_ARGS += arch=$(shell uname -m)
4344
endif
4445

4546
ifeq ($(UNAME), Linux)

0 commit comments

Comments
 (0)