added code for compilation failed scenario
This commit is contained in:
parent
39796b634e
commit
d111f3bb47
5
build.sh
5
build.sh
@ -32,6 +32,11 @@ echo "Compiling..."
|
|||||||
# Compile
|
# Compile
|
||||||
$compiler $files $flags -o $output
|
$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'"
|
echo "Output generated as '$output'"
|
||||||
###
|
###
|
||||||
|
Loading…
x
Reference in New Issue
Block a user