Skip to content

Commit 96e35c5

Browse files
committed
🔨 Disable OpenMP availability check
* This step **will** fail on MacOS, as the compiler is not linked to OpenMP in R by default (I think) - this is something that happens during build, and therefore it will fail. However, this is a wild guess as it is my understanding that plugins will link it during build of single programs.
1 parent 73b756b commit 96e35c5

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

.github/workflows/R-CMD-check.yaml

-24
Original file line numberDiff line numberDiff line change
@@ -96,30 +96,6 @@ jobs:
9696
run: |
9797
pkgbuild::check_build_tools(debug = TRUE)
9898
99-
- name: Check OpenMP availability
100-
if: matrix.config.compiler != 'clang'
101-
shell: Rscript {0}
102-
run: |
103-
# 1) check if OpenMP
104-
# is available
105-
Rcpp::cppFunction(plugins = "openmp",
106-
code = "
107-
bool is_available() {
108-
#ifdef _OPENMP
109-
return true;
110-
#else
111-
return false;
112-
#endif
113-
}
114-
"
115-
)
116-
117-
# 2) stop if not
118-
# available
119-
stopifnot(
120-
"OpenMP not available!" = is_available()
121-
)
122-
12399
- name: Setup Python and {reticulate}
124100
uses: ./.github/actions/setup-reticulate
125101

0 commit comments

Comments
 (0)