Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

rust cross compile

// To cross compile, first you need to add a target
rustup target add <Your target here, example: arm-linux-androideabi>
// Then you need to build, passing the target flag
cargo build --target=<Your target here, example: arm-linux-androideabi>

// To see a list of available targets:
rustup target list

//To remove a previously-added target
rustup target remove

// Supported platforms:
https://doc.rust-lang.org/nightly/rustc/platform-support.html
Source by rust-lang.github.io #
 
PREVIOUS NEXT
Tagged: #rust #cross #compile
ADD COMMENT
Topic
Name
5+8 =