1
Fork 0

Add comment noting the situation with target_os = "psx"

This commit is contained in:
Mads Marquart 2024-10-03 14:13:11 +02:00
parent 111f2e8a39
commit afe605957f

View file

@ -14,6 +14,10 @@ pub(crate) fn target() -> Target {
arch: "mips".into(), arch: "mips".into(),
options: TargetOptions { 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(), os: "psx".into(),
vendor: "sony".into(), vendor: "sony".into(),
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes), linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),