system/alacritty: Updated ARCH detection.

This allows building on aarch64-current. No changes for any
other arches.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2022-12-30 08:53:27 +09:00 committed by Willy Sudiarto Raharjo
parent d80a2bd755
commit 5c326ace76
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -56,13 +56,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
CARGOTARGET="--target i586-unknown-linux-gnu"
CARGOTARGET="--target $ARCH-unknown-linux-gnu"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
CARGOTARGET="--target i686-unknown-linux-gnu"
elif [ "$ARCH" = "x86_64" ]; then
CARGOTARGET="--target $ARCH-unknown-linux-gnu"
elif [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "aarch64" ]; then
SLKCFLAGS="-O2 -fPIC"
CARGOTARGET="--target x86_64-unknown-linux-gnu"
CARGOTARGET="--target $ARCH-unknown-linux-gnu"
else
SLKCFLAGS="-O2"
CARGOTARGET=""