diff options
Diffstat (limited to 'helpers/llvm-projs')
-rwxr-xr-x | helpers/llvm-projs | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/helpers/llvm-projs b/helpers/llvm-projs index bbcaf0a..190f379 100755 --- a/helpers/llvm-projs +++ b/helpers/llvm-projs @@ -6,18 +6,17 @@ prog=$(basename $0) progdir=$(dirname $0) syntax() { - echo "Syntax: $prog [clang|lldb|lld|rt|libs|all|none] {+/-}[c|x|r|k|d|l|a|u|t]" + echo "Syntax: $prog [clang|lldb|lld|rt|libs|all|none] {+/-}[c|r|k|d|l|a|u|t]" echo " no args: List linked projects" - echo " clang: Clang + Clang Tools Extra" + echo " clang: Clang" echo " lldb: Clang + lldb" echo " lld: Clang + lld" echo " rt: Clang + compiler-rt" echo " libs: Clang + libcxx + libcxxabi + libunwind" echo " all: Link all projects" echo " none: Unlink all projects" - echo " {+/-}: link / unlink projects (default: link)" + echo " {+/-}: enable / disable projects" echo " c Clang" - echo " x Clang Tools Extra" echo " r Compiler-rt" echo " k lld" echo " d lldb" @@ -31,7 +30,6 @@ syntax() { need_all() { need=$1 clang=$need - clang_extra=$need rt=$need libcxx=$need libcxxabi=$need @@ -65,7 +63,6 @@ case $opt in clang) need_all OFF clang=ON - clang_extra=ON shift ;; lldb) @@ -133,9 +130,6 @@ while ! test -z $1; do c) clang=$flag ;; - x) - clang_extra=$flag - ;; r) rt=$flag ;; @@ -164,14 +158,6 @@ while ! test -z $1; do shift done -# clang and clang-tools-extra have a special relationship: we can't enable -# clang-tools-extra without enabling clang, and we also can't disable clang -# without also disabling clang-tools-extra -if [ "$clang_extra" = ON -a "$clang" = OFF ]; then - echo "Can't have Clang Tools Extra without Clang! Try to add +c or -x" - exit -fi - add="" remove="" |