Commit a30f552c authored by donghuixu's avatar donghuixu

speed up bazel build

parent 9f29041a
......@@ -22,11 +22,11 @@ runcmd(){
echo "build combination: PURPOSE=$PURPOSE CXX=$CXX CC=$CC"
if [ "$PURPOSE" = "compile-with-bazel" ]; then
runcmd "bazel build -c opt --copt -DHAVE_ZLIB=1 //..."
runcmd "bazel test -c opt --copt -DHAVE_ZLIB=1 --define=unittest=true //..."
runcmd "bazel build -j 12 -c opt --copt -DHAVE_ZLIB=1 //..."
runcmd "bazel test -j 12 -c opt --copt -DHAVE_ZLIB=1 --define=unittest=true //..."
# Build with glog
runcmd "bazel build -c opt --copt -DHAVE_ZLIB=1 --define=with_glog=true //..."
runcmd "bazel test -c opt --copt -DHAVE_ZLIB=1 --define=with_glog=true --define=unittest=true //..."
runcmd "bazel build -j 12 -c opt --copt -DHAVE_ZLIB=1 --define=with_glog=true //..."
runcmd "bazel test -j 12 -c opt --copt -DHAVE_ZLIB=1 --define=with_glog=true --define=unittest=true //..."
exit 0
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