about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-20 00:04:03 +0000
committerbors <bors@rust-lang.org>2024-02-20 00:04:03 +0000
commit7d6139494833d478aeb568966a028a68dfa01e73 (patch)
treefe76745066f04facb050877b6ce6a52e1c7263a2 /compiler/rustc_codegen_llvm/src
parent0395fa387ad4de63ea1b36703ca0d65017b8c2dc (diff)
parenta3cf493642e770783d2bd89deb8afe90af45525b (diff)
downloadrust-7d6139494833d478aeb568966a028a68dfa01e73.tar.gz
rust-7d6139494833d478aeb568966a028a68dfa01e73.zip
Auto merge of #121296 - madsmtm:fix-mac-catalyst-deployment-target, r=shepmaster
Fix `IPHONEOS_DEPLOYMENT_TARGET` on Mac Catalyst

Some of the target code invalidly assumed that the deployment target variable on Mac Catalyst is `MACOSX_DEPLOYMENT_TARGET`, which is wrong, Mac Catalyst uses the same environment variable as iOS.

Additionally, the deployment target was hardcoded to `14.0`, I've lowered this to `13.1` ([same default as Clang](https://github.com/llvm/llvm-project/blob/d022f32c73c57b59a9121eba909f5034e89c628e/clang/lib/Driver/ToolChains/Darwin.cpp#L2038)), and made it properly load from the environment.

This shouldn't require any changes to the `cc` crate, as that uses `rustc --print=deployment-target` to get this information automatically.

CC `@BlackHoleFox`
r? `@rust-lang/macos`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions