Skip to content

Commit

Permalink
Merge pull request #8 from maxiv-science/macos-ci
Browse files Browse the repository at this point in the history
macos ci
  • Loading branch information
weninc committed Nov 9, 2023
2 parents efcef35 + 1c07fb8 commit 0110fa5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
else:
compile_args = ['-std=c++17', '-fopenmp']
link_ars = ['-fopenmp']

# See https://conda-forge.org/docs/maintainer/knowledge_base.html#newer-c-features-with-old-sdk
if sys.platform == 'darwin':
compile_args.append('-D_LIBCPP_DISABLE_AVAILABILITY')

ext_modules = [
Pybind11Extension(
Expand Down

0 comments on commit 0110fa5

Please sign in to comment.