Skip to content

Commit

Permalink
Add comment noting the situation with target_os = "psx"
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Oct 3, 2024
1 parent 111f2e8 commit afe6059
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/rustc_target/src/spec/targets/mipsel_sony_psx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit afe6059

Please sign in to comment.