aboutsummaryrefslogtreecommitdiff
path: root/helpers/llvm-projs
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2016-04-25 15:37:25 +0300
committerDiana Picus <diana.picus@linaro.org>2016-04-26 16:33:59 +0300
commit3124fb887e6a258d4fd328ea0a8297feb63bb7f9 (patch)
treee19ae03ee1502ebb5198ab7aaf8fd0d810759330 /helpers/llvm-projs
parent8501fb1d500512b54ea52d03f9dd3f39f0de5a98 (diff)
Add clang-tools-extra, lld and lldb to the scripts
The scripts aren't very consistent about which repos they handle (e.g. clang-tools-extra was handled in llvm-prepare, but not in the other scripts). This commit tries to improve on that by: * adding support for clang-tools-extra in llvm-projs, llvm-sync and llvm-branch * adding support for lld and lldb to llvm-branch. Change-Id: I82b0aeb95b5116d1d75f0721e0c4d31c4744e04b
Diffstat (limited to 'helpers/llvm-projs')
-rwxr-xr-xhelpers/llvm-projs10
1 files changed, 9 insertions, 1 deletions
diff --git a/helpers/llvm-projs b/helpers/llvm-projs
index e0ff2da..ac20999 100755
--- a/helpers/llvm-projs
+++ b/helpers/llvm-projs
@@ -8,7 +8,7 @@
prog=`basename $0`
syntax() {
- echo "Syntax: $prog {+/-}[clang|rt|libs|tools|test]"
+ echo "Syntax: $prog {+/-}[clang|cextra|rt|libs|tools|test]"
echo " noarg: list linked projects"
echo " {+/-}: link / unlik projects (default: link)"
}
@@ -16,6 +16,8 @@ syntax() {
# Dirs and links into LLVM
clang_dir=clang
clang_link=tools/clang
+clang_extra_dir=clang-tools-extra
+clang_extra_link=tools/clang/tools/extra
rt_dir=compiler-rt
rt_link=projects/compiler-rt
libcxx_dir=libcxx
@@ -63,6 +65,7 @@ update() {
list_all() {
echo "Projects linked:"
has $clang_link && echo " + Clang"
+ has $clang_extra_link && echo " + Clang Tools Extra"
has $rt_link && echo " + Compiler-RT"
has $libcxx_link && echo " + LibC++"
has $libcxxabi_link && echo " + LibC++abi"
@@ -83,6 +86,7 @@ fi
# Need/not need
clang=`init $clang_link`
+clang_extra=`init $clang_extra_link`
rt=`init $rt_link`
libcxx=`init $libcxx_link`
libcxxabi=`init $libcxxabi_link`
@@ -108,6 +112,9 @@ while ! test -z $1; do
clang)
clang=$flag
;;
+ cextra)
+ clang_extra=$flag
+ ;;
rt)
rt=$flag
;;
@@ -147,4 +154,5 @@ update $libcxxabi_dir $libcxxabi_link $libcxxabi
update $libcxx_dir $libcxx_link $libcxx
update $rt_dir $rt_link $rt
update $clang_dir $clang_link $clang
+update $clang_extra_dir $clang_extra_link $clang_extra
list_all