mirror of
https://github.com/thepigeongenerator/sdl_template.git
synced 2025-12-17 05:55:47 +01:00
add executable check in build
This commit is contained in:
5
build.sh
5
build.sh
@@ -58,6 +58,11 @@ fi
|
||||
EXE_PATH=$BUILD_DIR/$ARCHITECTURE/$PROJECT_NAME$FILE_EXSTENSION
|
||||
echo "building at: $EXE_PATH"
|
||||
|
||||
if [ ! -x $COMPILER ]; then
|
||||
echo -e "\033[91mCouldn't find an executable at path: \033[0m $COMPILER"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
# compile the code
|
||||
COMMAND="$COMPILER `find ./src -name *.c` -o $EXE_PATH -Wall -g -lm $ARGS"
|
||||
echo "using command: $COMMAND"
|
||||
|
||||
Reference in New Issue
Block a user