Commit 4223d52b authored by Chaoting Liu's avatar Chaoting Liu Committed by Francesco Marinucci

rust: bootstrap build

parent 728f849d
......@@ -14,7 +14,7 @@ pkgdesc='Systems programming language focused on safety, speed and concurrency'
url='https://www.rust-lang.org/'
arch=('x86_64')
license=('MIT' 'Apache')
makedepends=('rust' "llvm=$_llvm_ver" 'libffi' 'lib32-gcc-libs' 'perl' 'python3' 'curl' 'cmake')
makedepends=("llvm=$_llvm_ver" 'libffi' 'lib32-gcc-libs' 'perl' 'python3' 'curl' 'cmake')
checkdepends=('procps-ng' 'gdb')
options=('!emptydirs')
source=("https://static.rust-lang.org/dist/rustc-$pkgver-src.tar.gz"{,.asc}
......@@ -41,8 +41,8 @@ link-shared = true
[build]
target = ["x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu"]
cargo = "/usr/bin/cargo"
rustc = "/usr/bin/rustc"
# cargo = "/usr/bin/cargo"
# rustc = "/usr/bin/rustc"
python = "/usr/bin/python3"
extended = true
sanitizers = false
......@@ -76,7 +76,7 @@ build() {
export RUST_BACKTRACE=1
export RUST_COMPILER_RT_ROOT="$srcdir/compiler-rt-$_llvm_ver.src"
python ./x.py dist -j "$(nproc)"
python3 ./x.py dist -j "$(nproc)"
DESTDIR="$PWD"/dest-rust python ./x.py install -j "$(nproc)"
# move docs and lib32 libs out of the way for splitting
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment