summaryrefslogtreecommitdiffstats
path: root/testing/docker/rust-build/build_cargo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testing/docker/rust-build/build_cargo.sh')
-rw-r--r--testing/docker/rust-build/build_cargo.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/docker/rust-build/build_cargo.sh b/testing/docker/rust-build/build_cargo.sh
new file mode 100644
index 000000000..33b56e6f9
--- /dev/null
+++ b/testing/docker/rust-build/build_cargo.sh
@@ -0,0 +1,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