Commit c62926de authored by zhujiashun's avatar zhujiashun

passing --with-thrift as init_make_config argument

parent c0d3b6a5
...@@ -28,14 +28,15 @@ if [ "$USE_MESALINK" = "yes" ]; then ...@@ -28,14 +28,15 @@ if [ "$USE_MESALINK" = "yes" ]; then
fi fi
# The default env in travis-ci is Ubuntu. # The default env in travis-ci is Ubuntu.
if ! sh config_brpc.sh --headers=/usr/include --libs=/usr/lib --nodebugsymbols --cxx=$CXX --cc=$CC $EXTRA_BUILD_OPTS --with-thrift ; then if ! sh config_brpc.sh --headers=/usr/include --libs=/usr/lib --nodebugsymbols --cxx=$CXX --cc=$CC $EXTRA_BUILD_OPTS $1 ; then
echo "Fail to configure brpc" echo "Fail to configure brpc"
exit 1 exit 1
fi fi
} }
if [ "$PURPOSE" = "compile" ]; then if [ "$PURPOSE" = "compile" ]; then
init_make_config # In order to run thrift example, we need to add the corresponding flag
init_make_config "--with-thrift"
make -j4 && sh tools/make_all_examples make -j4 && sh tools/make_all_examples
elif [ "$PURPOSE" = "unittest" ]; then elif [ "$PURPOSE" = "unittest" ]; then
init_make_config init_make_config
......
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