Skip to content

Commit 323c826

Browse files
committed
configure: explicitly test for omp.h
When compiling a package from source on macOS without the custom OpenMP runtime installed, R provides libomp.dylib but _not_ omp.h. Since we do include <omp.h> in the package code, test for it at configuration time.
1 parent e23cba1 commit 323c826

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

configure

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ fi
7373
# Specifically use schedule(dynamic) to distinguish incompatibilities in OpenMP runtime on macOS, #7318
7474

7575
cat <<EOF > test-omp.c
76+
#ifdef _OPENMP
77+
#include <omp.h>
78+
#endif
7679
void test_openmp(int * result) {
7780
int sum = 0;
7881
#ifdef _OPENMP

0 commit comments

Comments
 (0)