Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

update to oneTBB 2022.0 #232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jan 15, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tweaks
  • Loading branch information
kevinushey committed Jan 14, 2025
commit aa4ced2a9113fdb7838524b897e2840b21f26f69
27 changes: 20 additions & 7 deletions 27 tools/config/configure.R
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,27 @@ define(
TBB_NAME = tbbName
)

# set TBB_RPATH
if (!is.na(tbbLib)) {
define(PKG_LIBS = "-Wl,-L\"$(TBB_LIB)\" @TBB_RPATH@ -l$(TBB_NAME) -ltbbmalloc")
define(TBB_RPATH = sprintf("-Wl,-rpath,%s", shQuote(tbbLib)))
# set PKG_LIBS
pkgLibs <- if (!is.na(tbbLib)) {

c(
"-Wl,-L\"$(TBB_LIB)\"",
sprintf("-Wl,-rpath,%s", shQuote(tbbLib)),
"-l$(TBB_NAME)",
"-ltbbmalloc"
)

} else {
define(PKG_LIBS = "@TBB_RPATH@ -l$(TBB_NAME) -ltbbmalloc")
define(TBB_RPATH = "")

c(
"-Wl,-Ltbb/build/lib_release",
"-l$(TBB_NAME)",
"-ltbbmalloc"
)

}

define(PKG_LIBS = paste(pkgLibs, collapse = " "))

# now, set up PKG_CPPFLAGS
if (!is.na(tbbLib)) {
Expand All @@ -230,7 +243,7 @@ if (!is.na(tbbLib)) {

# macOS needs some extra flags set
if (Sys.info()[["sysname"]] == "Darwin") {
define(PKG_LIBS_EXTRA = "-Ltbb/build/lib_release -ltbb -Wl,-rpath,\"@loader_path/../lib\"")
define(PKG_LIBS_EXTRA = "-Wl,-rpath,\"@loader_path/../lib\"")
} else {
define(PKG_LIBS_EXTRA = "")
}
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.