Tools: Only enable -Werr for SITL when compiling with g++

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
This commit is contained in:
Ryan Friedman 2023-05-22 09:42:26 -06:00 committed by Andrew Tridgell
parent 7b4d37ac43
commit 8d1937866b

View File

@ -365,10 +365,18 @@ for t in $CI_BUILD_TARGET; do
if [ "$t" == "replay" ]; then
echo "Building replay"
$waf configure --board sitl --debug --disable-scripting --Werror
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
echo "Building AP_DAL standalone test"
$waf configure --board sitl --debug --disable-scripting --no-gcs --Werror
$waf configure --board sitl --debug --disable-scripting --no-gcs $maybe_werror
$waf --target tool/AP_DAL_Standalone
$waf clean
continue