Merge pull request #11443 from wjwithagen/wip-wjw-freebsd-cmake-options

do_freebsd.sh: Set options for debug building.

Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2016-10-16 22:10:48 +08:00 committed by GitHub
commit 2eb89c8a9c
2 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@ if test -e build; then
fi
mkdir build
cd build
cmake $@ ..
cmake "$@" ..
# minimal config to find plugins
cat <<EOF > ceph.conf

View File

@ -13,6 +13,7 @@ fi
rm -rf build && ./do_cmake.sh "$*" \
-D CMAKE_BUILD_TYPE=Debug \
-D CMAKE_CXX_FLAGS_DEBUG="-O0 -g" \
-D CMAKE_C_FLAGS_DEBUG="-O0 -g" \
-D ENABLE_GIT_VERSION=OFF \
-D WITH_BLKID=OFF \
-D WITH_FUSE=OFF \
@ -26,6 +27,6 @@ rm -rf build && ./do_cmake.sh "$*" \
2>&1 | tee cmake.log
cd build
gmake -j$NPROC V=1 VERBOSE=1 | tee build.log 2>&1
gmake -j$NPROC check CEPH_BUFFER_NO_BENCH=yes | tee check.log 2>&1
gmake -j$NPROC V=1 VERBOSE=1
gmake -j$NPROC check CEPH_BUFFER_NO_BENCH=yes