diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-09-27 19:07:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-27 19:07:59 +0200 |
| commit | f9cd81f3d9e39457a67f6cf2eaf9a2bfc9035eea (patch) | |
| tree | 8e91be4440b21f33d1a29b7ae0f1354e04ef0b7c /compiler/rustc_codegen_llvm/src | |
| parent | e76eb96a002fbae4a69324b609692e0cba5c949b (diff) | |
| parent | fb10eeb42b0389961d12c432f476b63ea23851a9 (diff) | |
| download | rust-f9cd81f3d9e39457a67f6cf2eaf9a2bfc9035eea.tar.gz rust-f9cd81f3d9e39457a67f6cf2eaf9a2bfc9035eea.zip | |
Rollup merge of #130435 - madsmtm:move-apple-link-args, r=petrochenkov
Move Apple linker args from `rustc_target` to `rustc_codegen_ssa` They are dependent on the deployment target and SDK version, but having these in `rustc_target` makes it hard to introduce that dependency. Part of the work needed to do https://github.com/rust-lang/rust/issues/118204, see https://github.com/rust-lang/rust/pull/129342 for some discussion. Tested using: ```console ./x test tests/run-make/apple-deployment-target --target="aarch64-apple-darwin,aarch64-apple-ios,aarch64-apple-ios-macabi,aarch64-apple-ios-sim,aarch64-apple-tvos,aarch64-apple-tvos-sim,aarch64-apple-visionos,aarch64-apple-visionos-sim,aarch64-apple-watchos,aarch64-apple-watchos-sim,arm64_32-apple-watchos,armv7k-apple-watchos,armv7s-apple-ios,x86_64-apple-darwin,x86_64-apple-ios,x86_64-apple-ios-macabi,x86_64-apple-tvos,x86_64-apple-watchos-sim,x86_64h-apple-darwin" IPHONEOS_DEPLOYMENT_TARGET=10.0 ./x test tests/run-make/apple-deployment-target --target=i386-apple-ios ``` `arm64e-apple-darwin` and `arm64e-apple-ios` have not been tested, see https://github.com/rust-lang/rust/issues/130085, neither is `i686-apple-darwin`, since that requires using an x86_64 macbook, and I currently can't get mine to work, see https://github.com/rust-lang/rust/issues/130434. CC `@petrochenkov`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
