2 export NPROC=`sysctl -n hw.ncpu`
4 if [ x"$1"x = x"--deps"x ]; then
8 if [ x"$CEPH_DEV"x != xx ]; then
9 BUILDOPTS="$BUILDOPTS V=1 VERBOSE=1"
10 CXX_FLAGS_DEBUG="-DCEPH_DEV"
11 C_FLAGS_DEBUG="-DCEPH_DEV"
14 # To test with a new release Clang, use with cmake:
15 # -D CMAKE_CXX_COMPILER="/usr/local/bin/clang++-devel" \
16 # -D CMAKE_C_COMPILER="/usr/local/bin/clang-devel" \
18 # On FreeBSD we need to preinstall all the tools that are required for building
19 # dashboard, because versions fetched are not working on FreeBSD.
29 -D CMAKE_BUILD_TYPE=Debug \
30 -D CMAKE_CXX_FLAGS_DEBUG="$CXX_FLAGS_DEBUG -O0 -g" \
31 -D CMAKE_C_FLAGS_DEBUG="$C_FLAGS_DEBUG -O0 -g" \
32 -D ENABLE_GIT_VERSION=OFF \
33 -D WITH_SYSTEM_BOOST=ON \
34 -D WITH_SYSTEM_NPM=ON \
36 -D WITH_BABELTRACE=OFF \
39 -D WITH_BLUESTORE=OFF \
45 -D WITH_LIBCEPHFS=OFF \
54 (cd build; gmake -j$NPROC $BUILDOPTS )
58 # And remove cores leftover from previous runs
59 sudo rm -rf /tmp/cores.*
60 (cd build; ctest -j$NPROC || ctest --rerun-failed --output-on-failure)