diff options
author | 2016-02-12 12:15:23 -0800 | |
---|---|---|
committer | 2016-02-12 12:15:23 -0800 | |
commit | 013475a27222c46e528c83704fa2bf43ba207571 (patch) | |
tree | 1070fe0f48ee9a56b6fe08287f0f846a99f67621 /tools | |
parent | c08f196648463d44eb85e17c5815dbf8f709a42a (diff) |
Put all XSAN bots on the same DEPS-sourced build of Clang.
This adds LLVM, Clang, and compiler-rt (*san tools) to DEPS,
then uses them from xsan_build, building them if needed.
This is similar to how the CMake bots bootstrap CMake if needed.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1693733003
Review URL: https://codereview.chromium.org/1693733003
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/xsan_build | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/tools/xsan_build b/tools/xsan_build index d1960bccad..db255fb20a 100755 --- a/tools/xsan_build +++ b/tools/xsan_build @@ -12,8 +12,25 @@ set -e set -x -export CC=clang -export CXX=clang++ +here=$(cd `dirname $0`; echo `pwd`) +cores=48 + +echo "Bootstrapping CMake" +pushd $here/../third_party/externals/cmake +./bootstrap --parallel=$cores +make -j $cores cmake +popd + +echo "Building Clang" +pushd $here/../third_party/externals/llvm +mkdir -p out/ +cd out/ +$here/../third_party/externals/cmake/bin/cmake -DCMAKE_BUILD_TYPE=Release -G Ninja .. +ninja +popd + +export CC=$here/../third_party/externals/llvm/out/bin/clang +export CXX=$here/../third_party/externals/llvm/out/bin/clang++ $CC --version if [[ "$1" == "memory" ]]; then |