| # --- LibC++ | # --- LibC++ | ||||
| if [[ "${CXX}" = clang* ]] | if [[ "${CXX}" = clang* ]] | ||||
| then | then | ||||
| if [[ ! -d "$(ls -A ${DEPENDENCY_DIR}/llvm-source)" ]] | |||||
| pwd | |||||
| ls | |||||
| if [[ ! -d "${DEPENDENCY_DIR}/llvm-source" ]] | |||||
| then | then | ||||
| echo "*** LLVM Source not available ***" | |||||
| LLVM_RELEASE=release_50 | LLVM_RELEASE=release_50 | ||||
| git clone --depth=1 -b ${LLVM_RELEASE} https://github.com/llvm-mirror/llvm.git llvm-source | git clone --depth=1 -b ${LLVM_RELEASE} https://github.com/llvm-mirror/llvm.git llvm-source | ||||
| git clone --depth=1 -b ${LLVM_RELEASE} https://github.com/llvm-mirror/libcxx.git llvm-source/projects/libcxx | git clone --depth=1 -b ${LLVM_RELEASE} https://github.com/llvm-mirror/libcxx.git llvm-source/projects/libcxx | ||||
| ../llvm-source | ../llvm-source | ||||
| make cxx -j4 | make cxx -j4 | ||||
| else | else | ||||
| echo "*** LLVM Source available ***" | |||||
| cd build | cd build | ||||
| fi | fi | ||||