diff options
| author | bors <bors@rust-lang.org> | 2025-02-10 21:09:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-02-10 21:09:36 +0000 |
| commit | 6171d944aea415a3023d4262e0895aa3b18c771f (patch) | |
| tree | ac1cbc6afb5a5c00c94b6378ea9a0c5beb93b944 /compiler/rustc_middle/src | |
| parent | 4bb6ec05b0d4d471d029e093b0396e110366d7d6 (diff) | |
| parent | ea68a47103c72c17f894510d4ddc5d309369c272 (diff) | |
| download | rust-6171d944aea415a3023d4262e0895aa3b18c771f.tar.gz rust-6171d944aea415a3023d4262e0895aa3b18c771f.zip | |
Auto merge of #133092 - madsmtm:bootstrap-deployment-target, r=Mark-Simulacrum,jieyouxu
Always set the deployment target when building std `cc` has [a bug/feature](https://github.com/rust-lang/cc-rs/issues/1171) (I guess depending on how you look at it) where the default deployment target is taken from the SDK instead of from `rustc`. This causes `compiler-builtins` to build `compiler-rt` with the wrong deployment target on iOS. I've been meaning to change how `cc` works in this regard, but that's a lengthy process, so let's fix it in bootstrap for now. The behaviour can be seen locally with `./x build library --set build.optimized-compiler-builtins=true` for various target triples, and then inspecting with `otool -l build/host/stage1/lib/rustlib/*/lib/libcompiler_builtins-*.rlib | rg 'minos|version'`. I have added a rmake test that ensures that we now have the same version everywhere. Fixes https://github.com/rust-lang/rust/issues/128419 Fixes https://github.com/rust-lang/compiler-builtins/issues/650 Fixes https://github.com/rust-lang/rust/issues/136523 See also https://github.com/rust-lang/cargo/issues/13115, https://github.com/rust-lang/cc-rs/issues/1171, https://github.com/rust-lang/rust/issues/136113 See https://github.com/rust-lang/rust/pull/133092#issuecomment-2626206772 for a description of how the change works. try-job: i686-gnu-1 try-job: i686-gnu-2 try-job: x86_64-apple-1 try-job: aarch64-apple try-job: dist-apple-various try-job: dist-aarch64-apple try-job: dist-various-2 try-job: x86_64-fuchsia
Diffstat (limited to 'compiler/rustc_middle/src')
0 files changed, 0 insertions, 0 deletions
