From 013475a27222c46e528c83704fa2bf43ba207571 Mon Sep 17 00:00:00 2001 From: mtklein Date: Fri, 12 Feb 2016 12:15:23 -0800 Subject: 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 --- tools/xsan_build | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'tools') 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 -- cgit v1.2.3