Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export CC=clang
- export CXX=clang++
- export CXXFLAGS="-stldib=libc++"
- cd
- export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/home/user/llvm/projects/libcxxabi/include"
- export LDFLAGS="-lc++abi"
- cd
- git clone --single-branch --branch master --depth=1 http://llvm.org/git/llvm
- cd llvm/projects/
- git clone --single-branch --branch master --depth=1 http://llvm.org/git/libcxxabi
- git clone --single-branch --branch master --depth=1 http://llvm.org/git/libcxx
- git clone --single-branch --branch master --depth=1 http://llvm.org/git/compiler-rt
- cd ../tools
- git clone --single-branch --branch master --depth=1 http://llvm.org/git/clang
- git clone --single-branch --branch master --depth=1 http://llvm.org/git/clang-tools-extra extra
- git clone --single-branch --branch master --depth=1 http://llvm.org/git/lld
- git clone --single-branch --branch master --depth=1 http://llvm.org/git/lldb
- git clone --single-branch --branch master --depth=1 http://llvm.org/git/polly
- sudo apt-get install libgmp3-dev dh-autoreconf libunwind8 libunwind8-dev
- cd
- cd llvm/tools/polly/utils
- mkdir -p ~/build-cloog
- bash checkout_cloog.sh ~/build-cloog
- mkdir -p ~/build-isl
- bash checkout_isl.sh ~/build-isl
- cd ~/build-isl/
- ./configure
- make
- sudo make install
- cd ~/build-cloog/
- ./configure --with-isl=system
- make
- sudo make install
- sudo apt-get install python-dev libedit-dev libncurses-dev swig libgmp-dev
- cd
- mkdir build-llvm
- cd build-llvm
- # --enable-debug-runtime
- bash ../llvm/configure --enable-optimized --disable-assertions --enable-libcpp --enable-jit --with-intel-jitevents --enable-targets=x86,x86_64 --enable-polly --enable-cxx1y --with-gmp=/usr/local --with-isl=/usr/local --with-cloog=/usr/local --with-binutils-include=/usr/include
- make -j5
- #mv /usr/local/clang /usr/local/clang1
- sudo make install
- sudo apt-get install cmake
- cd
- mkdir build-profile-rt
- cd build-profile-rt
- cmake ../llvm/projects/compiler-rt -DLLVM_CONFIG_PATH=/usr/local/bin/llvm-config
- make
- sudo make install
- #cd
- #git clone --single-branch --branch master --depth=1 http://llvm.org/git/libclc
- #cd libclc
- #./configure.py --with-llvm-config=/usr/local/bin/llvm-config
- #clang++ -O3 -Xclang -load -Xclang LLVMPolly.so -mllvm -polly -mllvm -polly-vectorizer=polly -mllvm -enable-polly-openmp -lgomp file.cpp
Advertisement
Add Comment
Please, Sign In to add comment