libgo windows编译
1:
git clone https://github.com/yyzybb537/libgo.git
2:
cd libgo
3:
git submodule update --init --recursive
4:
cd vs_proj/
5:
./make_vs_projs.sh
6:修改配置文件:libgo/cmake_config.h
//libgo在Linux系统上默认使用ucontext做协程上下文切换,开启此选项将使用boost.coroutine来替代ucontext. #define USE_BOOST_COROUTINE 0 #define USE_UCONTEXT 0 #define USE_FIBER 1 //libgo在Linux系统上默认使用ucontext做协程上下文切换,开启此选项将使用boost.context来替代ucontext. #define USE_BOOST_CONTEXT 1//这是在linux上性能最佳的编译参数 #define ENABLE_DEBUGGER 0 #define WITH_CARES 0 #define WITH_SAFE_SIGNAL 0 #define LIBGO_SINGLE_THREAD 0
获取更多帮主请关注小程序