1 Star 1 Fork 1

sylar/mordor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.sh 740 Bytes
一键复制 编辑 原始数据 按行查看 历史
Kevin Cai 提交于 2011-06-01 18:30 . fix memory leak in HTTPClient test
#!/bin/sh
if [ ! -x configure ]; then
autoreconf -i
fi
if [ ! -f Makefile ]; then
if [ "$1" = "debug" ]; then
export CXXFLAGS='-g -O0'
elif [ "$1" = "coverage" ]; then
export CXXFLAGS='-g -O0 -fprofile-arcs -ftest-coverage'
elif [ "$1" = "valgrind" ]; then
export CXXFLAGS='-g -O0'
VALGRINDFLAGS=--enable-valgrind=yes
else
ASSERTFLAGS=--disable-assert
fi
which pg_config >/dev/null || POSTGRESFLAGS=--without-postgresql
./configure --disable-shared $ASSERTFLAGS $POSTGRESFLAGS $VALGRINDFLAGS
fi
if [ $(uname) = 'Linux' ]; then
j=$(grep processor /proc/cpuinfo | wc -l)
elif [ $(uname) = 'Darwin' ]; then
j=$(sysctl -n hw.ncpu)
else
j=2
fi
make check -j$j
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/sylar-yin/mordor.git
git@gitee.com:sylar-yin/mordor.git
sylar-yin
mordor
mordor
next

搜索帮助