mirror of https://github.com/google/oss-fuzz.git
Done (#6536)
This commit is contained in:
parent
b3577655f2
commit
ab547f1881
|
@ -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/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue