mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
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:
parent
d80a2bd755
commit
5c326ace76
1 changed files with 4 additions and 4 deletions
|
@ -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=""
|
||||
|
|
Loading…
Reference in a new issue