More cross-compilation platforms

This commit is contained in:
Quentin Gliech
2021-12-10 10:52:58 +01:00
parent 53a274fb53
commit 8d3f2ed7ad
3 changed files with 32 additions and 8 deletions

View File

@@ -5,10 +5,16 @@ if [ "$#" -ne 1 ]; then
exit 1
fi
if [ "$1" = "linux/arm64" ]; then
if [ "$1" = "linux/arm64" -o "$1" = "linux/arm64/v8" ]; then
echo "aarch64-unknown-linux-gnu"
elif [ "$1" = "linux/arm" -o "$1" = "linux/arm/v7" ]; then
echo "armv7-unknown-linux-gnueabihf"
elif [ "$1" = "linux/arm/v6" ]; then
echo "arm-unknown-linux-gnueabihf"
elif [ "$1" = "linux/amd64" ]; then
echo "x86_64-unknown-linux-gnu"
elif [ "$1" = "linux/i386" ]; then
echo "i686-unknown-linux-gnu"
else
echo "unsupported platform $1" >&2
exit 2