mirror of
https://github.com/ceph/ceph
synced 2024-12-26 21:43:10 +00:00
59c208d9b4
- Added a lot more Clang flags to supress warnings, since Clang is way much more verbose. And while there rearranged the layout. - Move Linking flags to correct Cmake variables, so Clang does not complain about flags that are not appropriate - Clang/Cmake debugging: use CMAKE_CXX_FLAGS_DEBUG in buildscript - Move Linux specifics to if-endif blocks - -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
32 lines
803 B
Bash
Executable File
32 lines
803 B
Bash
Executable File
#!/bin/sh -xve
|
|
NPROC=`sysctl -n hw.ncpu`
|
|
|
|
if [ x"$1"x = x"--deps"x ]; then
|
|
# we need bash first otherwise almost nothing will work
|
|
sudo pkg install bash
|
|
if [ ! -L /bin/bash ]; then
|
|
echo linking /bin/bash to /usr/local/bin/bash
|
|
ln -s /usr/local/bin/bash /bin/bash
|
|
fi
|
|
sudo ./install-deps.sh
|
|
fi
|
|
rm -rf build && ./do_cmake.sh "$*" \
|
|
-D CMAKE_BUILD_TYPE=Debug \
|
|
-D CMAKE_CXX_FLAGS_DEBUG="-O0 -g" \
|
|
-D ENABLE_GIT_VERSION=OFF \
|
|
-D WITH_BLKID=OFF \
|
|
-D WITH_FUSE=OFF \
|
|
-D WITH_RBD=OFF \
|
|
-D WITH_XFS=OFF \
|
|
-D WITH_KVS=OFF \
|
|
-D WITH_MANPAGE=OFF \
|
|
-D WITH_LIBCEPHFS=OFF \
|
|
-D WITH_CEPHFS=OFF \
|
|
-D WITH_RADOSGW=OFF \
|
|
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
|
|
|