Created
March 23, 2016 11:55
-
-
Save adonis0147/eb5a1f38ee7db9477b6d to your computer and use it in GitHub Desktop.
build ycm on MSYS2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make mingw-w64-x86_64-gdb mingw-w64-x86_64-cmake winpty-git | |
sed -i '/alias python/d' ~/.bashrc | |
echo "alias python='winpty python'" >> ~/.bashrc | |
source ~/.bashrc | |
mkdir build | |
cd build | |
cmake -G "MSYS Makefiles" -DCMAKE_MAKE_PROGRAM=/mingw64/bin/mingw32-make.exe -DPATH_TO_LLVM_ROOT=/opt/llvm . ../third_party/ycmd/cpp | |
mingw32-make.exe ycm_core |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the script, I have successfully built the ycm_core with it, but after I start vim, it shows "youcompleme unavailable, no module named _io", do you know how I can solve it?