forked from mirrors/gecko-dev
Update rust-build docker image source to v0.4.3. This includes some recent to how verification and taskcluster work to maintain working scripts, and some changes for the newer cargo-building- cargo build system, which aren't sufficient for bootstrapping. MozReview-Commit-ID: 4IdbKVvco8m --HG-- extra : rebase_source : f3cd2b7e8429648072ac02df5e8d4659c675f2ae
28 lines
661 B
Bash
28 lines
661 B
Bash
#!/bin/bash -vex
|
|
|
|
set -x -e
|
|
|
|
: WORKSPACE ${WORKSPACE:=/home/worker}
|
|
|
|
CORES=$(nproc || grep -c ^processor /proc/cpuinfo || sysctl -n hw.ncpu)
|
|
|
|
set -v
|
|
|
|
# Configure and build rust.
|
|
OPTIONS="--enable-llvm-static-stdcpp --disable-docs"
|
|
OPTIONS+="--enable-debuginfo"
|
|
OPTIONS+="--release-channel=stable"
|
|
i586="i586-unknown-linux-gnu"
|
|
i686="i686-unknown-linux-gnu"
|
|
x64="x86_64-unknown-linux-gnu"
|
|
arm_android="arm-linux-androideabi"
|
|
x86_android="i686-linux-android"
|
|
|
|
mkdir -p ${WORKSPACE}/rust-build
|
|
pushd ${WORKSPACE}/rust-build
|
|
${WORKSPACE}/rust/configure --prefix=${WORKSPACE}/rustc \
|
|
--target=${x64},${i686} ${OPTIONS}
|
|
make -j ${CORES}
|
|
make dist
|
|
make install
|
|
popd
|