[build] update clang build script

This commit is contained in:
Armin Novak 2023-06-07 10:20:30 +02:00 committed by David Fort
parent 381183f421
commit 8f6b42b817

View File

@ -2,6 +2,11 @@
SCRIPT_PATH=$(dirname "${BASH_SOURCE[0]}")
SCRIPT_PATH=$(realpath "$SCRIPT_PATH")
WARN_FLAGS="-Weverything -Wno-padded -Wno-assign-enum -Wno-switch-enum \
-Wno-declaration-after-statement -Wno-c++98-compat -Wno-c++98-compat-pedantic \
-Wno-cast-align -Wno-covered-switch-default -Wno-documentation-unknown-command \
-Wno-documentation -Wno-documentation-html"
cmake \
-GNinja \
-DCMAKE_TOOLCHAIN_FILE="$SCRIPT_PATH/../cmake/ClangToolchain.cmake" \
@ -20,4 +25,6 @@ cmake \
-DWITH_SOZR=ON \
-DWITH_WAYLAND=ON \
-DWITH_WEBVIEW=ON \
-DWITH_SWSCALE=ON
-DWITH_SWSCALE=ON \
-DCMAKE_C_FLAGS="$WARN_FLAGS" \
-DCMAKE_CXX_FLAGS="$WARN_FLAGS"