feat(Docker): Enable warnings during build (#2395)

This commit is contained in:
Stoabrogga
2019-10-31 09:14:04 +01:00
committed by GitHub
parent ce30c08fbc
commit 53c4132b42

View File

@@ -16,7 +16,7 @@ ENV ENABLE_SCRIPTS=$ENABLE_SCRIPTS
ENTRYPOINT cd azerothcore/build && \
# run cmake
cmake ../ -DCMAKE_INSTALL_PREFIX=/azeroth-server -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DTOOLS=0 -DSCRIPTS=$ENABLE_SCRIPTS && \
cmake ../ -DCMAKE_INSTALL_PREFIX=/azeroth-server -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DTOOLS=0 -DSCRIPTS=$ENABLE_SCRIPTS -DWITH_WARNINGS=1 -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror" && \
# calculate the optimal number of threads
MTHREADS=`grep -c ^processor /proc/cpuinfo`; MTHREADS=$(($MTHREADS + 2)) && \
# run compilation