aarch64-switch-rs / cargo-nx

Cargo subcommand to simplify building Nintendo Switch projects
MIT License
71 stars 7 forks source link

Switch to use tier 3 target for 64-bit target #10

Closed palaster closed 1 year ago

palaster commented 1 year ago

Removed json and ld for aarch64-nintendo-switch. Changed triple to use "aarch64-nintendo-switch-freestanding" instead of "aarch64-nintendo-switch". Rewrote prepare_default_target because it should only be used for the 32-bit target.

Elephant in the room. I don't have a switch or an emulator I can run the generated nro on. So this should be considered untested until someone can test the generated nro.

Closes #6

palaster commented 1 year ago

I compared the checksums of the generated .elf and .nro using both the main and my pr branch build on an empty project and they were both the same. So, in light of testing on actual hardware or emulation, this works as it should.

XorTroll commented 1 year ago

Done on last commit