Skip to content

Commit

Permalink
Merge pull request #1108 from jeroen/develop
Browse files Browse the repository at this point in the history
Fix LdFlags for new RcppParallel
  • Loading branch information
andrjohns authored Jan 11, 2024
2 parents cc2598a + e338cee commit 7f91960
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions StanHeaders/R/Flags.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ CxxFlags <- function(as_character = FALSE) {
}

LdFlags <- function(as_character = FALSE) {
if (dir.exists(Sys.getenv("TBB_LIB"))) {
TBB_LIB <- normalizePath(Sys.getenv("TBB_LIB"))
TBB_LIB <- Sys.getenv("TBB_LINK_LIB", Sys.getenv("TBB_LIB"))
if (dir.exists(TBB_LIB)) {
TBB_LIB <- normalizePath(TBB_LIB)
} else {
TBB_LIB <- system.file("lib", .Platform$r_arch, package = "RcppParallel", mustWork = TRUE)
}
Expand Down

0 comments on commit 7f91960

Please sign in to comment.