Skip to content

Instantly share code, notes, and snippets.

@adonis0147
Created March 23, 2016 11:55
Show Gist options
  • Save adonis0147/eb5a1f38ee7db9477b6d to your computer and use it in GitHub Desktop.
Save adonis0147/eb5a1f38ee7db9477b6d to your computer and use it in GitHub Desktop.
build ycm on MSYS2
#/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
@silabs-kevin
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment