Fixed build error on macos (#33200)

This was due to uname reporting the architecture as arm64
instead of aarch64 on macos

Signed-off-by: Benjamin Vincent Schulenburg <bennyschulenburg@gmx.de>
This commit is contained in:
Ben 2024-08-27 08:31:26 +00:00 committed by GitHub
parent 173b6f183c
commit fef44620cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,7 +40,7 @@ def host_triple():
cpu_type = "x86_64"
elif cpu_type == "arm":
cpu_type = "arm"
elif cpu_type == "aarch64":
elif cpu_type in ["aarch64", "arm64"]:
cpu_type = "aarch64"
else:
cpu_type = "unknown"