community/rust: fix

This commit is contained in:
Kevin Mihelich 2017-10-19 00:05:52 +00:00
parent ea73aa5f1f
commit 3b95008a9a

View file

@ -6,6 +6,7 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - add a link to g++ to compensate for broken cross-compiler decisions # - add a link to g++ to compensate for broken cross-compiler decisions
# - build v6/v7 with -j2 - RAM constraints
buildarch=28 buildarch=28
highmem=1 highmem=1
@ -45,13 +46,16 @@ prepare() {
ln -s /usr/bin/g++ path/arm-linux-gnueabihf-g++ ln -s /usr/bin/g++ path/arm-linux-gnueabihf-g++
export PATH="$srcdir/path:$PATH" export PATH="$srcdir/path:$PATH"
fi fi
if [[ $CARCH == armv7h || $CARCH == armv6h ]]; then
jobs="-j 2"
fi
} }
build() { build() {
cd "rustc-$pkgver-src" cd "rustc-$pkgver-src"
msg2 "Run build under x.py" msg2 "Run build under x.py"
python2 ./x.py build python2 ./x.py build $jobs
} }
package_rust() { package_rust() {