diff --git a/build/build.sh b/build/build.sh index 21898d1..832c948 100755 --- a/build/build.sh +++ b/build/build.sh @@ -1,7 +1,9 @@ +set -e + SCRIPT_REL_DIR=$(dirname "${BASH_SOURCE[0]}") $SCRIPT_REL_DIR/build_.sh debug osx arm64 # $SCRIPT_REL_DIR/build_.sh debug wasm intel # pushd "run_tree/raspi/arm64/debug" # clang -o lumenarium /home/pi/dev/Lumenarium/src_v2/platform/raspi/lumenarium_first_raspi.c -lm -# popd \ No newline at end of file +# popd diff --git a/build/build_.sh b/build/build_.sh index 2b612d5..caf84ba 100755 --- a/build/build_.sh +++ b/build/build_.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Ensure an error makes the script bail +set -e + # -------------------------------------------- # Usage @@ -330,8 +333,8 @@ echo "Building To: ${BuildDir}/${LinkerOutput}" echo pushdir $BuildDir -rm ${CompilerOutput} 2> /dev/null -rm ${LinkerOutput} 2> /dev/null +echo "Cleaning: ${CompilerOutput} and ${LinkerOutput}" +rm -rf ${CompilerOutput} ${LinkerOutput} echo "COMPILING..." if [ $PLATFORM == "win32" ]