about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMads Marquart <mads@marquart.dk>2024-10-03 14:13:11 +0200
committerMads Marquart <mads@marquart.dk>2024-10-03 14:13:11 +0200
commitafe605957f04d9a2f453e40d673bde1f2cc037a7 (patch)
treeb3faef1a0afe5e8cf1083c91e7d32fb5557235f1
parent111f2e8a39fce63c6daac7eae88023f1e87c15d4 (diff)
downloadrust-afe605957f04d9a2f453e40d673bde1f2cc037a7.tar.gz
rust-afe605957f04d9a2f453e40d673bde1f2cc037a7.zip
Add comment noting the situation with target_os = "psx"
-rw-r--r--compiler/rustc_target/src/spec/targets/mipsel_sony_psx.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_target/src/spec/targets/mipsel_sony_psx.rs b/compiler/rustc_target/src/spec/targets/mipsel_sony_psx.rs
index 843d9c50d5c..1b8f9b71e93 100644
--- a/compiler/rustc_target/src/spec/targets/mipsel_sony_psx.rs
+++ b/compiler/rustc_target/src/spec/targets/mipsel_sony_psx.rs
@@ -14,6 +14,10 @@ pub(crate) fn target() -> Target {
         arch: "mips".into(),
 
         options: TargetOptions {
+            // The Playstation 1 is mostly bare-metal, but the BIOS does provide some a slight bit
+            // of functionality post load, so we still declare it as `cfg!(target_os = "psx")`.
+            //
+            // See <https://github.com/rust-lang/rust/pull/131168> for details.
             os: "psx".into(),
             vendor: "sony".into(),
             linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),