cargo-zigbuild icon indicating copy to clipboard operation
cargo-zigbuild copied to clipboard

Add documentation for cross-compiling to AWS arm

Open vultix opened this issue 11 months ago • 1 comments

When cross-compiling for AWS graviton Arm processors, you have to specify the appropriate target CPU or you may end up getting a hard-to-diagnose Illegal Instruction (SIGILL, exit code 132) error.

As this is a common use case, a note in the readme would be helpful.

Example:

RUSTFLAGS='-C target-cpu=neoverse-n1' cargo zigbuild --release --target aarch64-unknown-linux-gnu.2.34

vultix avatar Dec 02 '24 21:12 vultix

Pull requests are welcome!

messense avatar Dec 17 '24 09:12 messense