mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
Bug 1214948 - Add a script to build Linux clang using TaskCluster; r=ted
DONTBUILD
This commit is contained in:
parent
f0b23ff14e
commit
61b07632ad
29
testing/taskcluster/scripts/misc/build-clang-linux.sh
Executable file
29
testing/taskcluster/scripts/misc/build-clang-linux.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user