[toranj] update build script to treat "warning as error" under cmake (#4931)

This commit is contained in:
Abtin Keshavarzian
2020-05-06 22:05:25 -07:00
committed by Jonathan Hui
parent b07a33acec
commit f411a412be
+4 -2
View File
@@ -149,7 +149,8 @@ case ${build_config} in
echo "===================================================================================================="
echo "Building OpenThread (NCP/CLI for FTD/MTD/RCP mode) with simulation platform using cmake"
echo "===================================================================================================="
cmake -GNinja -DOT_PLATFORM=simulation -DOT_CONFIG=../tests/toranj/openthread-core-toranj-config-simulation.h . || die
cmake -GNinja -DOT_PLATFORM=simulation -DOT_COMPILE_WARNING_AS_ERROR=on \
-DOT_CONFIG=../tests/toranj/openthread-core-toranj-config-simulation.h . || die
ninja || die
;;
@@ -157,7 +158,8 @@ case ${build_config} in
echo "===================================================================================================="
echo "Building OpenThread POSIX host platform using cmake"
echo "===================================================================================================="
cmake -GNinja -DOT_PLATFORM=posix -DOT_CONFIG=../tests/toranj/openthread-core-toranj-config-posix.h . || die
cmake -GNinja -DOT_PLATFORM=posix -DOT_COMPILE_WARNING_AS_ERROR=on \
-DOT_CONFIG=../tests/toranj/openthread-core-toranj-config-posix.h . || die
ninja || die
;;