diff options
| author | Mads Marquart <mads@marquart.dk> | 2024-10-03 14:13:11 +0200 |
|---|---|---|
| committer | Mads Marquart <mads@marquart.dk> | 2024-10-03 14:13:11 +0200 |
| commit | afe605957f04d9a2f453e40d673bde1f2cc037a7 (patch) | |
| tree | b3faef1a0afe5e8cf1083c91e7d32fb5557235f1 | |
| parent | 111f2e8a39fce63c6daac7eae88023f1e87c15d4 (diff) | |
| download | rust-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.rs | 4 |
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), |
