Make build fail correctly on error
This commit is contained in:
parent
d2c3ae6fb7
commit
963c764ce0
|
@ -1,3 +1,5 @@
|
||||||
|
set -e
|
||||||
|
|
||||||
SCRIPT_REL_DIR=$(dirname "${BASH_SOURCE[0]}")
|
SCRIPT_REL_DIR=$(dirname "${BASH_SOURCE[0]}")
|
||||||
$SCRIPT_REL_DIR/build_.sh debug osx arm64
|
$SCRIPT_REL_DIR/build_.sh debug osx arm64
|
||||||
# $SCRIPT_REL_DIR/build_.sh debug wasm intel
|
# $SCRIPT_REL_DIR/build_.sh debug wasm intel
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Ensure an error makes the script bail
|
||||||
|
set -e
|
||||||
|
|
||||||
# --------------------------------------------
|
# --------------------------------------------
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
|
@ -330,8 +333,8 @@ echo "Building To: ${BuildDir}/${LinkerOutput}"
|
||||||
echo
|
echo
|
||||||
pushdir $BuildDir
|
pushdir $BuildDir
|
||||||
|
|
||||||
rm ${CompilerOutput} 2> /dev/null
|
echo "Cleaning: ${CompilerOutput} and ${LinkerOutput}"
|
||||||
rm ${LinkerOutput} 2> /dev/null
|
rm -rf ${CompilerOutput} ${LinkerOutput}
|
||||||
|
|
||||||
echo "COMPILING..."
|
echo "COMPILING..."
|
||||||
if [ $PLATFORM == "win32" ]
|
if [ $PLATFORM == "win32" ]
|
||||||
|
|
Loading…
Reference in New Issue