Last active
August 14, 2018 14:57
-
-
Save ljmccarthy/a17a9ce22dd1cdf351c7f6ec8ed51b8a to your computer and use it in GitHub Desktop.
Get LLVM source code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
set -o pipefail | |
LLVM_TAG="RELEASE_601" | |
LLVM_SRC="${HOME}/llvm/src" | |
get_llvm_project() { | |
svn export --force "https://llvm.org/svn/llvm-project/${1}/tags/${LLVM_TAG}/final" "${2}" | |
} | |
rm -rf "${LLVM_SRC}" | |
mkdir -p "${LLVM_SRC}" | |
get_llvm_project llvm "${LLVM_SRC}" | |
get_llvm_project lld "${LLVM_SRC}/tools/lld" | |
get_llvm_project cfe "${LLVM_SRC}/tools/clang" | |
get_llvm_project clang-tools-extra "${LLVM_SRC}/tools/clang/tools/extra" | |
get_llvm_project compiler-rt "${LLVM_SRC}/projects/compiler-rt" | |
get_llvm_project libcxx "${LLVM_SRC}/projects/libcxx" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment