From 6c350d32d202751c591f4055f08d13b66d8f6279 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Fri, 22 Oct 2021 15:19:41 +0200
Subject: [PATCH] [conda_build_config] Streamline macOS build variables
 following recipe at
 https://conda-forge.org/docs/maintainer/knowledge_base.html\#requiring-newer-macos-sdks

---
 bob/devtools/data/conda_build_config.yaml | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/bob/devtools/data/conda_build_config.yaml b/bob/devtools/data/conda_build_config.yaml
index ed396c48..270a4ab1 100644
--- a/bob/devtools/data/conda_build_config.yaml
+++ b/bob/devtools/data/conda_build_config.yaml
@@ -88,14 +88,23 @@ rust_compiler_version:
   - 1.40.0
 
 CONDA_BUILD_SYSROOT:            # [osx]
-  - /opt/MacOSX10.10.sdk        # [osx]
+  - /opt/MacOSX10.9.sdk         # [osx and x86_64]
+  - /opt/MacOSX11.0.sdk         # [osx and arm64]
 # This helps CMAKE find the sysroot. See
 # https://cmake.org/cmake/help/v3.11/variable/CMAKE_OSX_SYSROOT.html
 SDKROOT:                        # [osx]
-  - /opt/MacOSX10.10.sdk        # [osx]
+  - /opt/MacOSX10.12.sdk        # [osx and x86_64]
+  - /opt/MacOSX11.0.sdk         # [osx and arm64]
 macos_machine:                 # [osx]
   - x86_64-apple-darwin13.4.0  # [osx and x86_64]
   - arm64-apple-darwin20.0.0   # [osx and arm64]
+# https://conda-forge.org/docs/maintainer/knowledge_base.html#requiring-newer-macos-sdks
+# This is the version of the SDK we will use (headers and such)
+MACOSX_SDK_VERSION:            # [osx]
+  - 11.0                       # [osx and arm64]
+  - 10.9                       # [osx and x86_64]
+# This is the minimum base system we will target (needs to be smaller or equal
+# to the SDK version, for obvious reasons)
 MACOSX_DEPLOYMENT_TARGET:      # [osx]
   - 11.0                       # [osx and arm64]
   - 10.9                       # [osx and x86_64]
-- 
GitLab