update docker openstack vim
This commit is contained in:
+7
-46
@@ -34,9 +34,9 @@ import os
|
||||
import subprocess
|
||||
import ycm_core
|
||||
|
||||
project_path = os.path.abspath(os.path.dirname(__file__))
|
||||
DIR_OF_THIS_SCRIPT = "/home/light/.vim/bundle/YouCompleteMe"
|
||||
DIR_OF_THIRD_PARTY = os.path.join(DIR_OF_THIS_SCRIPT, 'third_party')
|
||||
# DIR_OF_THIS_SCRIPT = "/home/light/.vim/bundle/YouCompleteMe/third_party/ycmd"
|
||||
# DIR_OF_THIRD_PARTY = os.path.join(DIR_OF_THIS_SCRIPT, 'third_party')
|
||||
DIR_OF_THIS_SCRIPT = os.path.abspath(os.path.dirname(__file__))
|
||||
SOURCE_EXTENSIONS = ['.cpp', '.cxx', '.cc', '.c', '.m', '.mm']
|
||||
|
||||
# These are the compilation flags that will be used in case there's no
|
||||
@@ -60,34 +60,12 @@ flags = [
|
||||
# For a C project, you would set this to 'c' instead of 'c++'.
|
||||
'-x',
|
||||
'c++',
|
||||
'-isystem',
|
||||
'cpp/pybind11',
|
||||
'-isystem',
|
||||
'cpp/BoostParts',
|
||||
'-isystem',
|
||||
get_python_inc(),
|
||||
'-isystem',
|
||||
'cpp/llvm/include',
|
||||
'-isystem',
|
||||
'cpp/llvm/tools/clang/include',
|
||||
'-I',
|
||||
'cpp/ycm',
|
||||
'/usr/include',
|
||||
'-isystem',
|
||||
'includes',
|
||||
'-I',
|
||||
'cpp/ycm/ClangCompleter',
|
||||
'-isystem',
|
||||
'cpp/ycm/tests/gmock/gtest',
|
||||
'-isystem',
|
||||
'cpp/ycm/tests/gmock/gtest/include',
|
||||
'-isystem',
|
||||
'cpp/ycm/tests/gmock',
|
||||
'-isystem',
|
||||
'cpp/ycm/tests/gmock/include',
|
||||
'-isystem',
|
||||
'cpp/ycm/benchmarks/benchmark/include',
|
||||
'-isystem',
|
||||
project_path + '/includes',
|
||||
'-I',
|
||||
project_path + '/src',
|
||||
'src',
|
||||
]
|
||||
|
||||
# Clang automatically sets the '-std=' flag to 'c++14' for MSVC 2015 or later,
|
||||
@@ -202,21 +180,4 @@ def PythonSysPath(**kwargs):
|
||||
|
||||
sys_path.insert(0, DIR_OF_THIS_SCRIPT)
|
||||
|
||||
for folder in os.listdir(DIR_OF_THIRD_PARTY):
|
||||
if folder == 'python-future':
|
||||
folder = os.path.join(folder, 'src')
|
||||
sys_path.insert(GetStandardLibraryIndexInSysPath(sys_path) + 1,
|
||||
os.path.realpath(os.path.join(DIR_OF_THIRD_PARTY,
|
||||
folder)))
|
||||
continue
|
||||
|
||||
if folder == 'cregex':
|
||||
interpreter_path = kwargs['interpreter_path']
|
||||
major_version = subprocess.check_output([
|
||||
interpreter_path, '-c', 'import sys; print( sys.version_info[ 0 ] )']
|
||||
).rstrip().decode('utf8')
|
||||
folder = os.path.join(folder, 'regex_{}'.format(major_version))
|
||||
|
||||
sys_path.insert(0, os.path.realpath(os.path.join(DIR_OF_THIRD_PARTY,
|
||||
folder)))
|
||||
return sys_path
|
||||
|
||||
Reference in New Issue
Block a user