handle riscv compat

This commit is contained in:
Aiden McClelland
2025-12-20 15:45:15 -07:00
parent b61ed14675
commit 4f09d7e302

View File

@@ -10,15 +10,13 @@ rel_pwd="${pwd#"$(pwd)"}"
COMPAT_ARCH=$(uname -m)
platform=linux/$COMPAT_ARCH
case $COMPAT_ARCH in
x86_64)
platform=linux/amd64;;
aarch64|arm64)
aarch64)
platform=linux/arm64;;
*)
echo "Unsupported architecture: $COMPAT_ARCH" >&2
exit 1
;;
esac
if [ "$FORCE_COMPAT" = 1 ] || ( [ "$REQUIRES" = "linux" ] && [ "$(uname -s)" != "Linux" ] ) || ( [ "$REQUIRES" = "debian" ] && ! which dpkg > /dev/null ); then