From e5ee49ecb745f96395cf47bcfe742cdea5e5d7b9 Mon Sep 17 00:00:00 2001 From: imi415 Date: Thu, 4 Feb 2021 02:24:30 +0800 Subject: [PATCH] Fixed script. --- build_all.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build_all.sh b/build_all.sh index afe1bb2..16be00e 100644 --- a/build_all.sh +++ b/build_all.sh @@ -20,7 +20,8 @@ for TARGET in "${TARGETS[@]}" ; do if [ -f "Makefile" ];then rm -f Makefile; fi if [ -f "cmake_install.cmake" ];then rm -f cmake_install.cmake; fi if [ -f "CMakeCache.txt" ];then rm -f CMakeCache.txt; fi - cmake -DCMAKE_TOOLCHAIN_FILE="armgcc.cmake" -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=${TARGET} ../.. - make -j + cmake -DCMAKE_TOOLCHAIN_FILE="armgcc.cmake" -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=${TARGET} ../.. && make -j1 + RET=$? + if [ ! 0 -eq ${RET} ]; then exit ${RET}; fi cd .. done