summaryrefslogtreecommitdiffstats
path: root/testing/docker/rust-build/build_cargo.sh
blob: 33b56e6f96f88a09370199d1d7432d691aa64460 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash -vex

set -x -e

: WORKSPACE ${WORKSPACE:=/home/worker}

set -v

# Configure and build cargo.

if test $(uname -s) = "Darwin"; then
  export MACOSX_DEPLOYMENT_TARGET=10.7
fi

pushd ${WORKSPACE}/cargo
./configure --prefix=${WORKSPACE}/rustc --local-rust-root=${WORKSPACE}/rustc
make
make dist
make install
popd