Skip to content

Commit 1754d14

Browse files
authored
Merge pull request #2065 from xhochy/rust-deployment-target
Add news about the default OSX deployment target for Rust
2 parents 39ef235 + 4612fc0 commit 1754d14

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

news/2024-01-29-rust-175-osx-sdk.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Rust 1.75 requires setting newer MACOSX_DEPLOYMENT_TARGET
2+
3+
With the release of `rust 1.75`, we now require setting the minimal
4+
`MACOSX_DEPLOYMENT_TARGET` to at least `10.12`. You can do this by appending
5+
`recipe/conda_build_config.yaml` with the following content:
6+
7+
```yaml
8+
MACOSX_DEPLOYMENT_TARGET: # [osx and x86]
9+
- '10.12' # [osx and x86]
10+
```
11+
12+
You should also add a run dependency on the respective OSX version:
13+
14+
```yaml
15+
run:
16+
- __osx >={{ MACOSX_DEPLOYMENT_TARGET|default("10.9") }} # [osx and x86_64]
17+
```
18+
19+
The latter is also set automatically via a `run_exports` of
20+
the `compiler('rust')` package, but we add this line if you would increase
21+
the deployment target later in the feedstock for unrelated reasons.

0 commit comments

Comments
 (0)