Skip to content

Commit

Permalink
Adding osx arm64 build (#33)
Browse files Browse the repository at this point in the history
* Adding osx arm64 build
* Force linking against libquadmath on osx-arm64
  • Loading branch information
deslaughter authored Feb 1, 2023
1 parent 0314c4f commit eaa6bb3
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .azure-pipelines/azure-pipelines-osx.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions .ci_support/osx_arm64_.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
MACOSX_DEPLOYMENT_TARGET:
- '11.0'
c_compiler:
- clang
c_compiler_version:
- '14'
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- clangxx
cxx_compiler_version:
- '14'
fortran_compiler:
- gfortran
fortran_compiler_version:
- '11'
libblas:
- 3.9 *netlib
liblapack:
- 3.9 *netlib
llvm_openmp:
- '14'
macos_machine:
- arm64-apple-darwin20.0.0
target_platform:
- osx-arm64
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- fortran_compiler_version
3 changes: 3 additions & 0 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .scripts/run_osx_build.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions conda-forge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ github:
tooling_branch_name: main
conda_build:
pkg_format: '2'
build_platform:
osx_arm64: osx_64
test: native_and_emulated
4 changes: 4 additions & 0 deletions recipe/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

if [[ "$CONDA_BUILD_CROSS_COMPILATION" == 1 && $target_platform == "osx-arm64" ]]; then
export LDFLAGS="${LDFLAGS:-} -lquadmath"
fi

mkdir build
cd build

Expand Down
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ source:
# git_depth: 1 # (Defaults to -1/not shallow)

build:
number: 0
number: 1
skip: true # [win]

requirements:
Expand Down

0 comments on commit eaa6bb3

Please sign in to comment.