Check out llvm sources using the new llvm git monorepo

This updates compiler-rt, libunwind, libcxxabi and libcxx to a newer
version, matching the compiler.

This will be the official, canonical repo in the future.

For the non-dev Dockerfile build, this means that all the llvm based
subprojects need to be built in one RUN to avoid storing the llvm
checkout in the docker layers.
This commit is contained in:
Martin Storsjö committed 2019-09-12 13:14:19 +03:00
1 parent 51da9d154c
commit 0f9d9f1986
5 files changed
+34 -105

No files matched your search

+4 -29
View File
@@ -34,37 +34,12 @@ export PATH=$PREFIX/bin:$PATH
: ${CORES:=4}
: ${ARCHS:=${TOOLCHAIN_ARCHS-i686 x86_64 armv7 aarch64}}
if [ ! -d libunwind ]; then
git clone -b master https://github.com/llvm-mirror/libunwind.git
CHECKOUT_LIBUNWIND=1
fi
if [ ! -d libcxxabi ]; then
git clone -b master https://github.com/llvm-mirror/libcxxabi.git
CHECKOUT_LIBCXXABI=1
fi
if [ ! -d libcxx ]; then
git clone -b master https://github.com/llvm-mirror/libcxx.git
CHECKOUT_LIBCXX=1
fi
if [ -n "$SYNC" ] || [ -n "$CHECKOUT_LIBUNWIND" ]; then
cd libunwind
[ -z "$SYNC" ] || git fetch
git checkout df9c0cfd896524ae16dd7283cdf722f300c2b45d
cd ..
fi
if [ -n "$SYNC" ] || [ -n "$CHECKOUT_LIBCXXABI" ]; then
cd libcxxabi
[ -z "$SYNC" ] || git fetch
git checkout cac80b29da529d44ceb63930679e3a1af9cace37
cd ..
fi
if [ -n "$SYNC" ] || [ -n "$CHECKOUT_LIBCXX" ]; then
cd libcxx
[ -z "$SYNC" ] || git fetch
git checkout f16a595ec76a383f08380c81af3e21a3065364c1
cd ..
if [ ! -d llvm-project/libunwind ] || [ -n "$SYNC" ]; then
CHECKOUT_ONLY=1 ./build-llvm.sh
fi
cd llvm-project
LIBCXX=$(pwd)/libcxx
case $(uname) in