From 09705b5745b56fdedea089eb0a4d3b9514afa4f3 Mon Sep 17 00:00:00 2001 From: Patrick Avery Date: Wed, 18 Oct 2023 16:06:21 -0500 Subject: [PATCH] Try cross-compiling for arm64 on osx Something like this should be possible... Signed-off-by: Patrick Avery --- conda.recipe/conda_build_config.yaml | 9 +++++++++ conda.recipe/meta.yaml | 2 ++ 2 files changed, 11 insertions(+) diff --git a/conda.recipe/conda_build_config.yaml b/conda.recipe/conda_build_config.yaml index 77f0eec0a..dd5aacfac 100644 --- a/conda.recipe/conda_build_config.yaml +++ b/conda.recipe/conda_build_config.yaml @@ -2,3 +2,12 @@ python: - 3.9 - 3.10 - 3.11 +c_compiler: + - gcc # [linux] + - clang # [osx] + - vs2019 # [win] +target_platform: + - linux-64 # [linux] + - osx-64 # [osx and x86_64] + - osx-arm64 # [osx and arm64] + - win-64 # [win] diff --git a/conda.recipe/meta.yaml b/conda.recipe/meta.yaml index 229760264..6bd2561a6 100644 --- a/conda.recipe/meta.yaml +++ b/conda.recipe/meta.yaml @@ -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