Build samples in debug mode (#3019)

Follow-up on #3008. Compiling samples in Debug mode allows us to
take advantage of asserts and would have prevented the fix in #3008.
This commit is contained in:
Enrico Loparco
2024-01-16 02:36:05 +01:00
committed by GitHub
parent 685d55d2e7
commit c9fd44e8b8
6 changed files with 17 additions and 17 deletions

View File

@ -21,7 +21,7 @@ echo "#####################build basic project"
cd ${CURR_DIR}
mkdir -p cmake_build
cd cmake_build
cmake ..
cmake .. -DCMAKE_BUILD_TYPE=Debug
make -j ${nproc}
if [ $? != 0 ];then
echo "BUILD_FAIL basic exit as $?\n"

View File

@ -21,7 +21,7 @@ echo "##################### build shared-module project"
cd ${CURR_DIR}
mkdir -p cmake_build
cd cmake_build
cmake ..
cmake .. -DCMAKE_BUILD_TYPE=Debug
make -j ${nproc}
if [ $? != 0 ];then
echo "BUILD_FAIL shared-module exit as $?\n"

View File

@ -17,7 +17,7 @@ APP_LIB_SRC="${APP_FRAMEWORK_DIR}/base/app/*.c ${APP_FRAMEWORK_DIR}/sensor/app/*
${APP_FRAMEWORK_DIR}/connection/app/*.c ${NATIVE_LIBS}/*.c"
WASM_APPS=${PWD}/wasm-apps
CLEAN=
CM_BUILD_TYPE="-DCMAKE_BUILD_TYPE=Release"
CM_BUILD_TYPE="-DCMAKE_BUILD_TYPE=Debug"
CM_TOOLCHAIN=""
usage ()