anza-xyz / platform-tools

Apache License 2.0
45 stars 32 forks source link

build.sh doesn't work on aarch64 mac #41

Closed geofflangenderfer closed 1 year ago

geofflangenderfer commented 2 years ago
bpf-tools on  master [!] on ☁️  (us-west-2)
❯ git diff
diff --git a/build.sh b/build.sh
index 76270e3..61d0e66 100755
--- a/build.sh
+++ b/build.sh
@@ -5,7 +5,7 @@ unameOut="$(uname -s)"
 case "${unameOut}" in
     Darwin*)
         EXE_SUFFIX=
-        HOST_TRIPLE=x86_64-apple-darwin
+        HOST_TRIPLE=aarch64-apple-darwin
         ARTIFACT=solana-bpf-tools-osx.tar.bz2;;
     MINGW*)
         EXE_SUFFIX=.exe

bpf-tools on  master [!] on ☁️  (us-west-2)
❯ ./build.sh
...
bpf-tools on  master [!] on ☁️  (us-west-2)
❯ find . -iregex ".*solana-bpf-tools-osx.tar.bz2.*"

bpf-tools on  master [!] on ☁️  (us-west-2)
❯ 
dmakarov commented 1 year ago

I added aarch64 to the build script.