From 02a0317db635c264d2df1228a4af39f963d34b5d Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 10 Sep 2017 06:29:40 +0300 Subject: [PATCH] Updated instruction of installation of clang: added useful tool [#CLICKHOUSE-2]. --- utils/prepare-environment/install-clang.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/utils/prepare-environment/install-clang.sh b/utils/prepare-environment/install-clang.sh index d1ca427ad4e..b58e0d8f20a 100755 --- a/utils/prepare-environment/install-clang.sh +++ b/utils/prepare-environment/install-clang.sh @@ -9,20 +9,29 @@ 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 svn co "http://llvm.org/svn/llvm-project/lld/${BRANCH}" lld svn co "http://llvm.org/svn/llvm-project/polly/${BRANCH}" polly + cd clang/tools svn co "http://llvm.org/svn/llvm-project/clang-tools-extra/${BRANCH}" extra + +git clone https://github.com/include-what-you-use/include-what-you-use.git +echo 'add_subdirectory(include-what-you-use)' >> CMakeLists.txt +sudo apt-get install libncurses5-dev + cd ../../../.. cd llvm/projects/ svn co "http://llvm.org/svn/llvm-project/compiler-rt/${BRANCH}" compiler-rt svn co "http://llvm.org/svn/llvm-project/libcxx/${BRANCH}" libcxx svn co "http://llvm.org/svn/llvm-project/libcxxabi/${BRANCH}" libcxxabi + cd ../.. mkdir build cd build/