mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Added script for build environment preparation [#METRIQA-1369].
This commit is contained in:
parent
cd4fef7767
commit
5f0263d23d
26
utils/prepare-environment/install-clang.sh
Executable file
26
utils/prepare-environment/install-clang.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
BRANCH=trunk
|
||||
#BRANCH=tags/RELEASE_400/final
|
||||
|
||||
THREADS=$(grep -c ^processor /proc/cpuinfo)
|
||||
|
||||
cd ~
|
||||
sudo apt-get install subversion
|
||||
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
|
Loading…
Reference in New Issue
Block a user