diff --git a/install.sh b/install.sh index ca8402ee8..734f3c41b 100644 --- a/install.sh +++ b/install.sh @@ -43,7 +43,14 @@ echo "It will take a long time, just be patient!" echo "If error,you need to compile it yourself" echo "cd $CURRENT_DIR/bundle/YouCompleteMe/ && bash -x install.sh --clang-completer" cd $CURRENT_DIR/bundle/YouCompleteMe/ -bash -x install.sh --clang-completer + +if [ `which clang` ] # check system clang +then + bash -x install.sh --clang-completer --system-libclang # use system clang +else + bash -x install.sh --clang-completer +fi + #vim bk and undo dir if [ ! -d /tmp/vimbk ]