Skip to content

Commit afe6059

Browse files
committed
Add comment noting the situation with target_os = "psx"
1 parent 111f2e8 commit afe6059

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_target/src/spec/targets/mipsel_sony_psx.rs

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ pub(crate) fn target() -> Target {
1414
arch: "mips".into(),
1515

1616
options: TargetOptions {
17+
// The Playstation 1 is mostly bare-metal, but the BIOS does provide some a slight bit
18+
// of functionality post load, so we still declare it as `cfg!(target_os = "psx")`.
19+
//
20+
// See <https://github.com/rust-lang/rust/pull/131168> for details.
1721
os: "psx".into(),
1822
vendor: "sony".into(),
1923
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),

0 commit comments

Comments
 (0)