Is there an official tutorial for cross compiling for Rust? I've found a few articles or github repo online but trying to check any "official" guides first.
One particular problem I encountered is: I specified the following in <project>/.cargo/config.toml
,
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-none-linux-gnueabihf-gcc"
but when I ran
cargo build --target armv7-unknown-linux-gnueabihf --release
it tries to call arm-linux-gnueabihf-gcc
instead (when building crate ring
). How can make sure cargo
calls arm-none-linux-gnueabihf-gcc
?
Thanks.