mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 01:12:12 +00:00
27 lines
544 B
Bash
Executable File
27 lines
544 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
BRANCH=trunk
|
|
#BRANCH=tags/RELEASE_400/final
|
|
|
|
THREADS=$(grep -c ^processor /proc/cpuinfo)
|
|
|
|
cd ~
|
|
sudo apt-get install -y subversion cmake3
|
|
mkdir llvm
|
|
cd llvm
|
|
svn co "http://llvm.org/svn/llvm-project/llvm/${BRANCH}" llvm
|
|
cd llvm/tools
|
|
svn co "http://llvm.org/svn/llvm-project/cfe/${BRANCH}" clang
|
|
cd ..
|
|
cd projects/
|
|
svn co "http://llvm.org/svn/llvm-project/compiler-rt/${BRANCH}" compiler-rt
|
|
cd ../..
|
|
mkdir build
|
|
cd build/
|
|
cmake -D CMAKE_BUILD_TYPE:STRING=Release ../llvm
|
|
make -j $THREADS
|
|
sudo make install
|
|
hash clang
|