anza-xyz / platform-tools

Apache License 2.0
45 stars 32 forks source link

Add check for alternate `uname -m` output for arm arch #71

Closed barnjamin closed 8 months ago

barnjamin commented 9 months ago

Some machines will output aarch64 instead of arm64, this pr adds support for both.

After:

I am able to successfully run cargo build with aarch64-unknown-linux-gnu

root@822384e32597:/tmp/decoy-crate# cargo build-sbf
    Finished release [optimized] target(s) in 1.32s
root@822384e32597:/tmp/decoy-crate# cargo build-bpf
    Finished release [optimized] target(s) in 1.30s
root@822384e32597:/tmp/decoy-crate# uname -m
aarch64

The build time for this was very long on my machine so it would be amazing to have this in releases (current issue https://github.com/solana-labs/platform-tools/issues/66)