Can I safely build my Rust program with "-Ctarget-cpu=native"?

polponline
HOBBY

a year ago

As the title says, can I add this flag to my program expecting it to run just fine in every case (is the build machine always the same as the deploy machine?). I am using Nixpacks to deploy

0 Replies

polponline
HOBBY

a year ago

N/A


a year ago

the build machine is not the same machine as the deploy machine, but its the same arch


Can I safely build my Rust program with "-Ctarget-cpu=native"? - Railway Help Station