Hello to all the comunity
I'm trying to optimize my programs in rust but i have a little problem
First of all i have all the code in and nfs share in a NAS
Now i have two computers where i want to run the program:
and AMD and a Raspberry pi4
For compile i have this two computers, but i preffer to compile only in the AMD
I have done a script that
cargo update cargo build --target=x86_64-unknown-linux-gnu --release
and another that have:
cargo update cargo build --target=aarch64-unknown-linux-gnu --release
I can diferenciate the bin because there are in separate folders
for x86_64 is:
and for arm64 is:
i was reading about puting a rustflags=" -c -target-cpu=native" in the .cargo/config.toml
to optimize the generated bin with all the crates being optimized.
But i have a question.
¿The main computer can crosscompile with cpu=native to the armv64 of the raspberry pi 4? ¿and where is going the bin?