rust/compiler/rustc_target/src
Matthias Krüger 0780889833
Rollup merge of #90499 - rusticstuff:macos-target-fixes, r=petrochenkov
Link with default MACOSX_DEPLOYMENT_TARGET if not otherwise specified.

This PR sets the MACOSX_DEPLOYMENT_TARGET environment variable during the linking stage to our default, if it is not specified. This way it matches the deployment target we pass to llvm. If not set the the linker uses Xcode or Xcode commandline tools default which varies by version.

Fixes #90342, #91082.

Drive-by fixes to make Rust behave more like clang:
* Default to 11.0 deployment target for ARM64 which is the earliest version that had support for it.
* Set the llvm target to `arm64-apple-macosx<deployment target>` instead of `aarch64-apple-macosx<deployment target>`.
2021-11-25 15:05:36 +01:00
..
abi Update LLVM comments around NoAliasMutRef 2021-11-05 12:22:51 -07:00
asm Update more rustc/libtest things for wasm64 2021-11-10 08:35:42 -08:00
spec Rollup merge of #90499 - rusticstuff:macos-target-fixes, r=petrochenkov 2021-11-25 15:05:36 +01:00
lib.rs Remove various unused feature gates 2021-10-02 19:09:18 +02:00
tests.rs Emit warnings for unused fields in custom targets. 2021-06-17 21:48:02 +02:00