aboutsummaryrefslogtreecommitdiff
path: root/development/racer
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2018-02-18 14:30:48 +1300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-03-03 08:42:10 +0700
commite8c749fb680e50715077cc29bcfbf80c5df95cbf (patch)
tree4e7e57e9fec52185091c92ab1c42f5cc54d1f2c7 /development/racer
parent4e881f2a549b4567757abcc332cc5a4aaaa5a88a (diff)
development/racer: Fix building on -current.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'development/racer')
-rw-r--r--development/racer/racer.SlackBuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/development/racer/racer.SlackBuild b/development/racer/racer.SlackBuild
index d983ca22b3dfa..87eb70f39c17b 100644
--- a/development/racer/racer.SlackBuild
+++ b/development/racer/racer.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for racer
-# Copyright 2017 Andrew Clemons, Wellington New Zealand
+# Copyright 2017-2018 Andrew Clemons, Wellington New Zealand
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -33,6 +33,12 @@ if [ -z "$ARCH" ]; then
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
+
+ if [ "$ARCH" = "i586" ]; then
+ if rustc -Vv | grep host | grep i686 > /dev/null ; then
+ ARCH=i686
+ fi
+ fi
fi
CWD=$(pwd)