This commit is contained in:
Nikita Mikhaylov 2021-09-29 12:17:46 +03:00 committed by GitHub
parent b3577655f2
commit ab547f1881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 9 deletions

View File

@ -34,12 +34,7 @@ RUN apt-get update -y \
sudo \
tzdata
RUN wget https://github.com/Kitware/CMake/releases/download/v3.21.1/cmake-3.21.1-Linux-x86_64.sh; \
chmod +x cmake-3.21.1-Linux-x86_64.sh; \
./cmake-3.21.1-Linux-x86_64.sh --skip-license --prefix="/usr"
RUN git clone --recursive https://github.com/ClickHouse/ClickHouse $SRC/ClickHouse
RUN git clone -j 8 --recursive https://github.com/ClickHouse/ClickHouse $SRC/ClickHouse
WORKDIR $SRC/ClickHouse
COPY build.sh $SRC/

View File

@ -47,12 +47,11 @@ CLICKHOUSE_CMAKE_FLAGS=(
"-DENABLE_SSL=1"
"-DUSE_INTERNAL_SSL_LIBRARY=1"
"-DUSE_UNWIND=ON"
"-DGLIBC_COMPATIBILITY=OFF"
)
if [ "$SANITIZER" = "coverage" ]; then
cmake -G Ninja $SRC/ClickHouse ${CLICKHOUSE_CMAKE_FLAGS[@]} -DCMAKE_CXX_FLAGS="$CXXFLAGS" -DCMAKE_C_FLAGS="$CFLAGS"
elif [ "$SANITIZER" = "undefined" ]; then
cmake -G Ninja $SRC/ClickHouse ${CLICKHOUSE_CMAKE_FLAGS[@]} -DCMAKE_CXX_FLAGS="$CXXFLAGS" -DCMAKE_C_FLAGS="$CFLAGS" -DSANITIZE=$SANITIZER
cmake -G Ninja $SRC/ClickHouse ${CLICKHOUSE_CMAKE_FLAGS[@]} -DCMAKE_CXX_FLAGS="$CXXFLAGS" -DCMAKE_C_FLAGS="$CFLAGS" -DWITH_COVERAGE=1
else
cmake -G Ninja $SRC/ClickHouse ${CLICKHOUSE_CMAKE_FLAGS[@]} -DCMAKE_CXX_FLAGS="$CXXFLAGS" -DCMAKE_C_FLAGS="$CFLAGS" -DWITH_COVERAGE=1 -DSANITIZE=$SANITIZER
fi