Skip to content

Commit

Permalink
bump MACOSX_DEPLOYMENT_TARGET to 10.13
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Jul 31, 2023
1 parent 10b0d99 commit fbf028c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
8 changes: 8 additions & 0 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ CBUILD:

MACOSX_DEPLOYMENT_TARGET: # [linux]
- 10.9 # [linux]
MACOSX_SDK_VERSION: # [osx and x86_64]
- "10.13" # [osx and x86_64]
# as of LLVM 17, we need 10.13 for MACOSX_DEPLOYMENT_TARGET --> part of zip
MACOSX_DEPLOYMENT_TARGET: # [osx and x86_64]
- "10.9" # [osx and x86_64]
- "10.9" # [osx and x86_64]
- "10.13" # [osx and x86_64]

version:
- 15.0.7
Expand Down Expand Up @@ -53,5 +60,6 @@ zip_keys:
- FINAL_PYTHON_SYSCONFIGDATA_NAME
-
- version
- MACOSX_DEPLOYMENT_TARGET # [osx and x86_64]
- channel_sources
- channel_targets
9 changes: 8 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,17 @@ outputs:
# This is not needed in Linux for cross-compiling in a conda-build env, but is needed outside
- libcxx >={{ version }}
- {{ pin_subpackage('clang_' ~ cross_target_platform, exact=True) }}
- gxx_impl_{{ target_platform }} # [linux]
- gxx_impl_{{ target_platform }} # [linux]
- __osx >={{ MACOSX_DEPLOYMENT_TARGET }} # [osx and x86_64]
# Since transitive run_exports are not currently possible
# (here I would like the run dependency on clangxx to pull in the run_exports from it).
run_exports:
strong:
- libcxx >={{ version }}
# strictly speaking the constraint on libcxx should be enough,
# but let's be nice to the solver and mark all libcxx-dependent
# packages as requiring 10.13 (for clangxx >= 17).
- __osx >={{ MACOSX_DEPLOYMENT_TARGET }} # [osx and x86_64]
test:
commands:
- echo {{ MACOSX_DEPLOYMENT_TARGET }} # [linux]
Expand All @@ -106,6 +111,8 @@ outputs:
- {{ pin_subpackage('clangxx_' ~ cross_target_platform, exact=True) }}
# hack to force the solver to work
- libllvm{{ major_ver }} {{ version }}
run:
- __osx >={{ MACOSX_DEPLOYMENT_TARGET }} # [osx and x86_64]
build:
always_include_files:
- bin/
Expand Down

0 comments on commit fbf028c

Please sign in to comment.