about summary refs log tree commit diff
path: root/compiler/rustc_target/src/spec/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-04-06 10:16:28 +0000
committerbors <bors@rust-lang.org>2025-04-06 10:16:28 +0000
commitf5c510260bef89f7799d0b8e1aa70d7d7925cd99 (patch)
treecfccb974a05c281d895cbdb9982541728609f1b7 /compiler/rustc_target/src/spec/mod.rs
parente7df5b055d1ea724b225c44bd5084141d6ab42b4 (diff)
parent7e4379c4eb25a423b8484d99b01bfc8f5bb7efd8 (diff)
downloadrust-f5c510260bef89f7799d0b8e1aa70d7d7925cd99.tar.gz
rust-f5c510260bef89f7799d0b8e1aa70d7d7925cd99.zip
Auto merge of #138947 - madsmtm:refactor-apple-versions, r=Noratrieb
Refactor Apple version handling in the compiler

Move various Apple version handling code in the compiler out `rustc_codegen_ssa` and into a place where it can be accessed by `rustc_attr_parsing`, which I found to be necessary when doing https://github.com/rust-lang/rust/pull/136867. Thought I'd split it out to make it easier to land, and to make further changes like https://github.com/rust-lang/rust/pull/131477 have fewer conflicts / PR dependencies.

There should be no functional changes in this PR.

`@rustbot` label O-apple
r? rust-lang/compiler
Diffstat (limited to 'compiler/rustc_target/src/spec/mod.rs')
-rw-r--r--compiler/rustc_target/src/spec/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_target/src/spec/mod.rs b/compiler/rustc_target/src/spec/mod.rs
index 98db0af30c2..79f73ef28b3 100644
--- a/compiler/rustc_target/src/spec/mod.rs
+++ b/compiler/rustc_target/src/spec/mod.rs
@@ -60,6 +60,7 @@ pub mod crt_objects;
 mod base;
 mod json;
 
+pub use base::apple;
 pub use base::avr::ef_avr_arch;
 
 /// Linker is called through a C/C++ compiler.