I am building my Python wheels using cibuildwheel on GitHub Actions. Since GHA does not provide runners with Apple Silicon 2 the wheels are cross compiled by cibuildwheel. I would like to add multiprocessing to my library. Since the clang version in MacOS does not support OpenMP I perform the following steps when building the wheels for MacOS:
brew install libomp
- build the wheels with
-Xpreprocessor -fopenmp -lomp
However I did not find a way to cross compile wheels for Apple Silicon 2 with OpenMP. Does someone has a idea how to achieve this?