Skip to content

Commit

Permalink
MNT: Add Linux aarch64, ppc64, and macOS arm64 builds
Browse files Browse the repository at this point in the history
* Add support for linux-aarch64, linux-ppc64le, and osx-arm64 builds.
   - Add python and cross-python as build requirements for cross-compilation.
     c.f. https://conda-forge.org/docs/maintainer/knowledge_base/#cross-compilation-examples
* Bump build number.
  • Loading branch information
matthewfeickert committed Jan 14, 2025
1 parent 77537b9 commit 1cb4d02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions conda-forge.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
build_platform:
linux_aarch64: linux_64
linux_ppc64le: linux_64
osx_arm64: osx_64
os_version:
linux_64: cos7
conda_forge_output_validation: true
Expand All @@ -8,3 +12,4 @@ conda_build:
pkg_format: '2'
bot:
inspection: hint-all
test: native_and_emulated
4 changes: 3 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ source:
sha256: bdcb529330730c4c364b79789620f33bafad8c2c854c1205ecc2d16511c0b690

build:
number: 1
number: 2
script:
# FIXME: Avoid 'ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]' error on osx builds
- export CFLAGS="$CFLAGS -Wno-implicit-function-declaration" # [osx and x86]
Expand All @@ -22,6 +22,8 @@ requirements:
build:
- {{ compiler('c') }}
- {{ stdlib('c') }}
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- python # [build_platform != target_platform]
host:
- pip
- python
Expand Down

0 comments on commit 1cb4d02

Please sign in to comment.