mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
community/rust: fix
This commit is contained in:
parent
ea73aa5f1f
commit
3b95008a9a
1 changed files with 5 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - add a link to g++ to compensate for broken cross-compiler decisions
|
||||
# - build v6/v7 with -j2 - RAM constraints
|
||||
|
||||
buildarch=28
|
||||
highmem=1
|
||||
|
@ -45,13 +46,16 @@ prepare() {
|
|||
ln -s /usr/bin/g++ path/arm-linux-gnueabihf-g++
|
||||
export PATH="$srcdir/path:$PATH"
|
||||
fi
|
||||
if [[ $CARCH == armv7h || $CARCH == armv6h ]]; then
|
||||
jobs="-j 2"
|
||||
fi
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "rustc-$pkgver-src"
|
||||
|
||||
msg2 "Run build under x.py"
|
||||
python2 ./x.py build
|
||||
python2 ./x.py build $jobs
|
||||
}
|
||||
|
||||
package_rust() {
|
||||
|
|
Loading…
Reference in a new issue