ian-h-chamberlain / docker-rust-devkitarm

0 stars 0 forks source link

Support cargo-3ds without `build-std` #3

Open ian-h-chamberlain opened 2 years ago

ian-h-chamberlain commented 2 years ago

Since this docker image actually builds a std, it would improve build times and be closer to a typical Rust build experience if cargo-3ds could detect and avoid passing -Zbuild-std when there is a std already built for the 3ds target.

From a quick test, it seems like it could be detected by checking the existence of the directory printed by rustc --print target-libdir --target armv6k-nintendo-3ds. In the container this dir exists, but a rustup-based installation seems not to have it.


This is really a cargo-3ds issue but probably doesn't affect most users, so filing it here instead.

ian-h-chamberlain commented 2 years ago

https://github.com/Meziu/cargo-3ds/issues/18