Skip to content

Commit 0a6d47d

Browse files
committed
Under macOS explicitly install and configure OpenMP support
1 parent e49b8ce commit 0a6d47d

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ jobs:
3131
with:
3232
dev_version: 'TRUE'
3333

34+
- name: OpenMP for macOS
35+
if: ${{ matrix.os == 'macos-latest' }}
36+
run: |
37+
curl -fsSL https://raw.githubusercontent.com/coatless-shell/openmp/main/install-openmp.sh | bash -s -- --yes
38+
mkdir -p ~/.R
39+
cat <<EOF > ~/.R/Makevars
40+
CPPFLAGS += -Xclang -fopenmp
41+
LDFLAGS += -lomp
42+
EOF
43+
cat ~/.R/Makevars
44+
3445
- name: Configure
3546
run: ./configure; cat src/Makevars
3647

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
* inst/tinytest/test_Rlapack.R: Skip this test involving complex
1111
algebra if on macOS as the LAPACK switch by R affects it
12+
2025-11-19 Dirk Eddelbuettel <[email protected]>
13+
14+
* .github/workflows/ci.yaml (jobs): On macOS, explicitly install and
15+
configure OpenMP
1216

1317
2025-11-13 Dirk Eddelbuettel <[email protected]>
1418

0 commit comments

Comments
 (0)