fxsdk: forward errors during make

This commit is contained in:
Lephenixnoir 2021-01-31 19:06:21 +01:00
parent 0db7ae9e2b
commit c3d9b53758
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 6 additions and 0 deletions

View File

@ -179,10 +179,16 @@ fxsdk_build_in() {
fi
if [[ -z "$configure" ]]; then
make --no-print-directory -C "build-$platform" "${make_extra_args[@]}"
rc=$?
fi
# Makefile version
else
make "all-$platform" "$@"
rc=$?
fi
if [[ $rc != 0 ]]; then
return $rc
fi
if [[ ! -z "$send" ]]; then