scripts: Only enable Werror in boards.py rather than build_ci.sh

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
This commit is contained in:
Ryan Friedman 2023-06-02 09:05:45 -06:00 committed by Andrew Tridgell
parent 2750a1ad6f
commit 5803dd9b23
1 changed files with 2 additions and 8 deletions

View File

@ -365,17 +365,11 @@ for t in $CI_BUILD_TARGET; do
if [ "$t" == "replay" ]; then if [ "$t" == "replay" ]; then
echo "Building replay" echo "Building replay"
$waf configure --board sitl --debug --disable-scripting
if [ $cxx_compiler == "g++" ]; then
# Only be strict about Werror on SITL when compiling with g++
# Once the warnings are gone in clang, remove this exception
maybe_werror="--Werror"
fi
$waf configure --board sitl --debug --disable-scripting $maybe_werror
$waf replay $waf replay
echo "Building AP_DAL standalone test" echo "Building AP_DAL standalone test"
$waf configure --board sitl --debug --disable-scripting --no-gcs $maybe_werror $waf configure --board sitl --debug --disable-scripting --no-gcs
$waf --target tool/AP_DAL_Standalone $waf --target tool/AP_DAL_Standalone
$waf clean $waf clean