Ravenslofty / prussia

Prussia - a Rust PS2 SDK.
Other
105 stars 6 forks source link

Nightly fixes & Cargo build-std #8

Closed awaken1ng closed 1 year ago

awaken1ng commented 1 year ago

Allows project to be built with current (1.70) nightly.

Since llvm_asm! was deprecated and removed, rewrite to asm! was required. Its not 1:1 (volatility and probably clobbers wise), but sample project does run on PCSX2.

Also use build-std as suggested by cargo-xbuild itself.

Which uncovered a bug that cargo-xbuild somehow dodged, since kernel-linkfile was enabled in BIOS, because of feature unification it was also enabled in sample hello world project (which, naturally, breaks it).

Maybe runtime could be split into user and kernel runtimes, but since BIOS is the only thing (so far) that uses the kernel part of it, decided to just remove the feature and move linker script to BIOS instead for now.

Ravenslofty commented 1 year ago

I appreciate your work on this, but, presently Prussia is slightly dead, and while these minor fixes are useful, they won't magically give me motivation to develop this like I wanted to.