Bug 1214948 - Add a script to build Linux clang using TaskCluster; r=ted
authorEhsan Akhgari <ehsan@mozilla.com>
Sat, 10 Oct 2015 22:04:15 -0400
changeset 303576 5ae416a837a05fa59f6488ac7d9fcc6aa0fe96a4
parent 303575 bbbda59e36c06845add8568ad3ded94db9ced413
child 303577 4634f3828a8939717ce66e1668de98e2e041d3da
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1214948
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1214948 - Add a script to build Linux clang using TaskCluster; r=ted DONTBUILD
testing/taskcluster/scripts/misc/build-clang-linux.sh
new file mode 100755
--- /dev/null
+++ b/testing/taskcluster/scripts/misc/build-clang-linux.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+set -x -e -v
+
+# This script is for building clang for Linux.
+
+WORKSPACE=$HOME/workspace
+HOME_DIR=$WORKSPACE/build
+UPLOAD_DIR=$WORKSPACE/artifacts
+
+# Fetch our toolchain from tooltool
+cd $HOME_DIR
+wget -O tooltool.py https://raw.githubusercontent.com/mozilla/build-tooltool/master/tooltool.py
+chmod +x tooltool.py
+: TOOLTOOL_CACHE                ${TOOLTOOL_CACHE:=/home/worker/tooltool-cache}
+export TOOLTOOL_CACHE
+cd src
+$HOME_DIR/tooltool.py -m browser/config/tooltool-manifests/linux64/releng.manifest fetch
+
+# gets a bit too verbose here
+set +x
+
+cd build/unix/build-clang
+./build-clang.py -c clang-static-analysis-linux64-centos6.json
+
+set -x
+
+# Put a tarball in the artifacts dir
+mkdir -p $UPLOAD_DIR
+cp clang.tar.* $UPLOAD_DIR