Skip to content

Commit

Permalink
Try cross-compiling for arm64 on osx
Browse files Browse the repository at this point in the history
Something like this should be possible...

Signed-off-by: Patrick Avery <[email protected]>
  • Loading branch information
psavery committed Oct 18, 2023
1 parent 55b78d4 commit 7d03225
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions conda.recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@ python:
- 3.9
- 3.10
- 3.11
c_compiler:
- gcc # [linux]
- clang # [osx]
- vs2019 # [win]
cross_compiler_target_platform: # [osx]
- osx-arm64 # [osx]
2 changes: 2 additions & 0 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ build:

requirements:
build:
# This is so that we can build cross-platform for osx-arm64
- {{ compiler('c') }}
# Numba is only here to ensure the numpy version is compatible
- numba
- numpy >=1.20
Expand Down

0 comments on commit 7d03225

Please sign in to comment.