aarch64-switch-rs / nx

Userland library for Nintendo Switch homebrew (and other potential purposes), written in pure Rust and some assembly bits
https://aarch64-switch-rs.github.io/nx/
MIT License
121 stars 16 forks source link

Remove usage of xargo and switch to cargo build-std #3

Closed marysaka closed 3 years ago

marysaka commented 3 years ago

This should simplify quite some stuffs while building.

Still need to update the tooling around to support it

ca1e commented 3 years ago

Agree! since cargo now has its own std feature for cross compile we should use cargo build for more compatiable stuffs.

add these to .carog/config:

[unstable]
build-std = ["core", "compiler_builtins", "alloc"]
+build-std-features = ["compiler-builtins-mem"]

ref: https://github.com/rust-osdev/cargo-xbuild

XorTroll commented 3 years ago

Last commit added support for this ;)