summaryrefslogtreecommitdiff
path: root/development/mrustc
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2018-08-13 08:01:31 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-09-08 08:37:55 +0700
commit4bcf6054324355313ce85d017bafa4d16c2ebac0 (patch)
tree33a4562a8b95ade2e9eb86f4b9c620aeb98b68f8 /development/mrustc
parent9d07f792f7673c858f592e5835443e9113db0f0e (diff)
downloadslackbuilds-4bcf6054324355313ce85d017bafa4d16c2ebac0.tar.gz
development/mrustc: Updated for version git346da18.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'development/mrustc')
-rw-r--r--development/mrustc/mrustc.SlackBuild14
-rw-r--r--development/mrustc/mrustc.info8
2 files changed, 15 insertions, 7 deletions
diff --git a/development/mrustc/mrustc.SlackBuild b/development/mrustc/mrustc.SlackBuild
index 462e8685cb..1f1a64d468 100644
--- a/development/mrustc/mrustc.SlackBuild
+++ b/development/mrustc/mrustc.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mrustc
-GITREV=${GITREV:-5d4bf9e96d795623f1b32b2f1f2e57c4f74419fe}
+GITREV=${GITREV:-346da1865a49d7fd354e7aa4e8b5712a2df35a22}
VERSION=${VERSION:-git$(echo "$GITREV" | sed 's/^\(.\{7\}\).*$/\1/')}
RUSTCVERSION=${RUSTCVERSION:-1.19.0}
BUILD=${BUILD:-1}
@@ -55,8 +55,16 @@ elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
elif [ "$ARCH" = "arm" ] ; then
- RUSTC_TARGET="arm-unknown-linux-gnueabi"
- SLKCFLAGS="-O2"
+ if readelf -h /bin/bash | grep Flags | grep hard > /dev/null 2>&1 ; then
+ # hardfloat
+ RUSTC_TARGET="armv7-unknown-linux-gnueabihf"
+ SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
+ else
+ # softfloat
+ RUSTC_TARGET="arm-unknown-linux-gnueabi"
+ SLKCFLAGS="-O2 -march=armv5te"
+ fi
+
LIBDIRSUFFIX=""
else
SLKCFLAGS="-O2"
diff --git a/development/mrustc/mrustc.info b/development/mrustc/mrustc.info
index df30d5e42a..d1c9dde249 100644
--- a/development/mrustc/mrustc.info
+++ b/development/mrustc/mrustc.info
@@ -1,9 +1,9 @@
PRGNAM="mrustc"
-VERSION="git5d4bf9e"
+VERSION="git346da18"
HOMEPAGE="https://github.com/thepowersgang/mrustc"
-DOWNLOAD="https://github.com/thepowersgang/mrustc/archive/5d4bf9e96d795623f1b32b2f1f2e57c4f74419fe/mrustc-5d4bf9e96d795623f1b32b2f1f2e57c4f74419fe.tar.gz \
- https://static.rust-lang.org/dist/rustc-1.19.0-src.tar.xz"
-MD5SUM="1c134fa4842a13216542fde8779262de \
+DOWNLOAD="https://github.com/thepowersgang/mrustc/archive/346da1865a49d7fd354e7aa4e8b5712a2df35a22/mrustc-346da1865a49d7fd354e7aa4e8b5712a2df35a22.tar.gz \
+ https://static.rust-lang.org/dist/rustc-1.19.0-src.tar.xz"
+MD5SUM="58ad7b9da4c756e8737fc0c4c5a93b3a \
e9af5bb321c0cad44ea0e3e2c644ab2f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""