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 4fe07af commit 8d0215eCopy full SHA for 8d0215e
R/tbb.R
@@ -49,8 +49,14 @@ tbbCxxFlags <- function() {
49
flags <- character()
50
51
# opt-in to TBB on Windows
52
- if (is_windows())
+ if (is_windows()) {
53
flags <- c(flags, "-DRCPP_PARALLEL_USE_TBB=1")
54
+ if (R.version$arch == "aarch64") {
55
+ # TBB does not have assembly code for Windows ARM64
56
+ # so we need to use compiler builtins
57
+ flags <- c(flags, "-DTBB_USE_GCC_BUILTINS")
58
+ }
59
60
61
# if TBB_INC is set, apply those library paths
62
tbbInc <- Sys.getenv("TBB_INC", unset = TBB_INC)
0 commit comments