-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_YouCompleteMe.sh
executable file
·63 lines (59 loc) · 2.39 KB
/
install_YouCompleteMe.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
#sudo apt-get install build-essential cmake python-dev
#./configure \
# --enable-multibyte \
# --enable-perlinterp=yes \
# --enable-pythoninterp=yes \
# --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
# --enable-python3interp=yes \
# --with-python3-config-dir=/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu \
# --enable-luainterp \
# --with-luajit \
# --enable-cscope \
# --enable-gui=auto \
# --with-features=huge \
# --with-x \
# --enable-fontset \
# --enable-largefile \
# --with-compiledby="Anthony" \
# --enable-fail-if-missing
#
# make VIMRUNTIMEDIR=/usr/local/share/vim/vim81 -j24
#
# sudo make install
git submodule update --init --recursive
cd `dirname $0`/bundle/YouCompleteMe/
# download wget https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/clang+llvm-10.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz
# cp clang+llvm-10.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz /localdata/anthonyb/vimrc/bundle/YouCompleteMe/third_party/ycmd/cpp/../clang_archives/libclang-10.0.0-x86_64-unknown-linux-gnu.tar.bz2
# tar xf clang+llvm-10.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz in /localdata/anthonyb/vimrc/bundle/YouCompleteMe/third_party/ycmd/third_party/clangd/output
#
# --- a/build.py
# +++ b/build.py
# @@ -1128,7 +1128,7 @@ def EnableClangdCompleter( Args ):
# if not Args.quiet:
# print( msg )
#
# - DownloadClangd( Print )
# + #DownloadClangd( Print )
#
# diff --git a/cpp/ycm/CMakeLists.txt b/cpp/ycm/CMakeLists.txt
# index e5918d75..e52fd6e2 100644
# --- a/cpp/ycm/CMakeLists.txt
# +++ b/cpp/ycm/CMakeLists.txt
# @@ -91,13 +91,9 @@ if ( USE_CLANG_COMPLETER AND
# "${CMAKE_SOURCE_DIR}/../clang_archives/${LIBCLANG_FILENAME}" )
# if( EXISTS "${LIBCLANG_LOCAL_FILE}" )
# - file( SHA256 "${LIBCLANG_LOCAL_FILE}" LIBCLANG_LOCAL_SHA256 )
# -
# - if( "${LIBCLANG_LOCAL_SHA256}" STREQUAL "${LIBCLANG_SHA256}" )
# - set( LIBCLANG_DOWNLOAD OFF )
# - else()
# - file( REMOVE "${LIBCLANG_LOCAL_FILE}" )
# - endif()
# + #file( SHA256 "${LIBCLANG_LOCAL_FILE}" LIBCLANG_LOCAL_SHA256 )
# + set( LIBCLANG_DOWNLOAD OFF )
# + message(WARNING "ALL GOOD")
#
python3 install.py --clang-completer --clangd-completer
# Old version
# ./install.sh --clang-completer