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:
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user