Skip to content

Commit 5b74e81

Browse files
committed
ci: manualy building libomp for macos
1 parent 596310d commit 5b74e81

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@ jobs:
3838
CIBW_BEFORE_BUILD: >-
3939
rm -rf {package}/build
4040
CIBW_BEFORE_BUILD_MACOS: >-
41-
brew install libomp
41+
git clone https://github.com/llvm/llvm-project.git &&
42+
cd llvm-project/openmp &&
43+
mkdir build &&
44+
cd build &&
45+
cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ .. &&
46+
make &&
47+
sudo make install
4248
CIBW_SKIP: "*-musllinux_aarch64"
4349
strategy:
4450
matrix:
@@ -58,8 +64,6 @@ jobs:
5864

5965
- name: Build wheels
6066
uses: pypa/cibuildwheel@v2.22.0
61-
env:
62-
MACOSX_DEPLOYMENT_TARGET: 14.0
6367

6468
- uses: actions/upload-artifact@v4
6569
with:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
os_name = platform.system()
1313
processor_name = platform.processor()
1414

15-
LIBOMP_PATH_ARM = "/opt/homebrew/opt/libomp"
16-
LIBOMP_PATH_X86 = "/usr/local/opt/libomp"
15+
LIBOMP_PATH_ARM = "/usr/local"
16+
LIBOMP_PATH_X86 = "/usr/local"
1717

1818
if os_name == "Windows":
1919
extra_compile_args = ["/openmp"]

0 commit comments

Comments
 (0)