We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5982ca commit f971883Copy full SHA for f971883
R/build.R
@@ -50,7 +50,12 @@ tbbCxxFlags <- function() {
50
51
if (dir.exists(Sys.getenv("TBB_INC"))) {
52
TBB_INC <- asBuildPath(Sys.getenv("TBB_INC"))
53
- flags <- paste0("-I", shQuote(TBB_INC))
+
54
+ if (file.exists(file.path(TBB_INC, "tbb", "version.h"))) {
55
+ flags <- paste0("-I", shQuote(TBB_INC), " -DTBB_INTERFACE_NEW")
56
+ } else {
57
+ flags <- paste0("-I", shQuote(TBB_INC))
58
+ }
59
}
60
61
flags
0 commit comments