added code for compilation failed scenario

This commit is contained in:
Václav Šmejkal 2022-04-27 18:47:33 +02:00
parent 39796b634e
commit d111f3bb47

View File

@ -32,6 +32,11 @@ echo "Compiling..."
# Compile
$compiler $files $flags -o $output
if [[ $? -ne 0 ]]; then
echo -e "\nCompilation failed. Did you run 'configure.sh' first?"
exit 1
fi
###
echo "Output generated as '$output'"
###