Commit 333f0a77 authored by zhujiashun's avatar zhujiashun

fix bazel command line options

parent d101f3cb
......@@ -356,7 +356,7 @@ file(GLOB_RECURSE BVAR_SOURCES "${PROJECT_SOURCE_DIR}/src/bvar/*.cpp")
file(GLOB_RECURSE BTHREAD_SOURCES "${PROJECT_SOURCE_DIR}/src/bthread/*.cpp")
file(GLOB_RECURSE JSON2PB_SOURCES "${PROJECT_SOURCE_DIR}/src/json2pb/*.cpp")
file(GLOB_RECURSE BRPC_SOURCES "${PROJECT_SOURCE_DIR}/src/brpc/*.cpp")
file(GLOB_RECURSE THRIFT_SOURCES "thrift*.cpp")
file(GLOB_RECURSE THRIFT_SOURCES "${PROJECT_SOURCE_DIR}/src/brpc/thrift*.cpp")
if(WITH_THRIFT)
message("brpc compile with thrift proctol")
......
......@@ -39,12 +39,11 @@ elif [ "$PURPOSE" = "compile-with-cmake" ]; then
elif [ "$PURPOSE" = "compile-with-bazel" ]; then
bazel build -j 12 -c opt --copt -DHAVE_ZLIB=1 //...
elif [ "$PURPOSE" = "compile-with-make-all-options" ]; then
init_make_config "--with-thrift --with-glog --with-mesalink" && \
make -j4 && sh tools/make_all_examples
init_make_config "--with-thrift --with-glog --with-mesalink" && make -j4
elif [ "$PURPOSE" = "compile-with-cmake-all-options" ]; then
rm -rf bld && mkdir bld && cd bld && cmake -DWITH_MESALINK=ON -DWITH_GLOG=ON -DWITH_THRIFT=ON .. && make -j4
elif [ "$PURPOSE" = "compile-with-bazel-all-options" ]; then
bazel build -j 12 -c opt --define with_mesalink=true with_glog=true with_thrift=true --copt -DHAVE_ZLIB=1 //...
bazel build -j 12 -c opt --define with_mesalink=true --define with_glog=true --define with_thrift=true --copt -DHAVE_ZLIB=1 //...
else
echo "Unknown purpose=\"$PURPOSE\""
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment