mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +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>
|
# 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() {
|
||||||
|
|
Loading…
Reference in a new issue