Skip to content

Commit

Permalink
Update CXXFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbadr committed Dec 14, 2020
1 parent c5982ca commit 216faf8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/build.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ tbbCxxFlags <- function() {

if (dir.exists(Sys.getenv("TBB_INC"))) {
TBB_INC <- asBuildPath(Sys.getenv("TBB_INC"))
flags <- paste0("-I", shQuote(TBB_INC))

if (file.exists(file.path(TBB_INC, "tbb", "version.h")))
flags <- paste0("-I", shQuote(TBB_INC), " -DTBB_INTERFACE_NEW")
} else {
flags <- paste0("-I", shQuote(TBB_INC))
}
}

flags
Expand Down

0 comments on commit 216faf8

Please sign in to comment.