mirror of
https://github.com/espressif/openthread.git
synced 2026-07-29 23:27:46 +00:00
[toranj] update build script to treat "warning as error" under cmake (#4931)
This commit is contained in:
committed by
Jonathan Hui
parent
b07a33acec
commit
f411a412be
@@ -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
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user