aboutsummaryrefslogtreecommitdiff
path: root/android-clang-toolchain
diff options
context:
space:
mode:
authorLinaro CI <minseong.kim@linaro.org>2017-10-24 00:41:06 +0100
committerLinaro CI <minseong.kim@linaro.org>2017-10-24 03:13:29 +0100
commitb79edf9a103451f4ce45761fb7254d45e9be8024 (patch)
treed416befaa708b60649886b5062a58207d3cf8349 /android-clang-toolchain
parent65b5dd17a4a7763d1c628600e8fe587d887e907a (diff)
downloadconfigs-b79edf9a103451f4ce45761fb7254d45e9be8024.tar.gz
Update for clang upstream build
1. In an attempt to fix errors in https://ci.linaro.org/job/android-clang-toolchain/155/consoleText 2. Remove the entire llvm repo to make sure that we have fresh source code. Change-Id: I41100865a7b01c97629c3566b3bb35240f02b472
Diffstat (limited to 'android-clang-toolchain')
-rwxr-xr-xandroid-clang-toolchain/builders.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/android-clang-toolchain/builders.sh b/android-clang-toolchain/builders.sh
index 347e0f401..b849e71e4 100755
--- a/android-clang-toolchain/builders.sh
+++ b/android-clang-toolchain/builders.sh
@@ -18,6 +18,9 @@ mkdir -p ${HOME}/srv/aosp/${JOB_NAME}
cd ${HOME}/srv/aosp/${JOB_NAME}
# Toolchain src downloads
+if [ -d llvm ]; then
+ rm llvm -rf
+fi
repo init -u https://android-git.linaro.org/git/platform/manifest.git -b clang-build
repo sync -j16 -c
@@ -47,6 +50,8 @@ cmake -G "Unix Makefiles" ../ \
-DLLVM_ENABLE_ASSERTIONS=false \
-DCMAKE_C_COMPILER=${HOME}/srv/aosp/${JOB_NAME}/clang+llvm-5.0.0-linux-x86_64-ubuntu14.04/bin/clang \
-DCMAKE_CXX_COMPILER=${HOME}/srv/aosp/${JOB_NAME}/clang+llvm-5.0.0-linux-x86_64-ubuntu14.04/bin/clang++ \
+ -DLIBCXXABI_LIBCXX_INCLUDES=${HOME}/srv/aosp/${JOB_NAME}/llvm/projects/libcxx/include \
+ -DLIBCXX_CXX_ABI_INCLUDE_PATHS=${HOME}/srv/aosp/${JOB_NAME}/llvm/projects/libcxxabi/include \
-DLLVM_BINUTILS_INCDIR=${HOME}/srv/aosp/${JOB_NAME}/binutils/binutils-2.27/include
make install VERBOSE=1 -j"$(nproc)"