configure-iphone exit status

SM
Scott M Ober
Wed, Oct 18, 2017 8:39 PM

Hi,

I'm trying to check if the result of configure-iphone is successful and
I found that it always returned 0 even if aconfigure returned an error.

The following patch to configure-iphone preserves the exit value of
aconfigure.


And finally invoke the configure script itself

./aconfigure --host=${ARCH_VAL}-apple-darwin_ios --disable-sdl $*

EC=$?
if test "$EC" = "0"; then
  echo "Done configuring for basename $SDKPATH"
  echo ""
fi
exit $EC

Hi, I'm trying to check if the result of configure-iphone is successful and I found that it always returned 0 even if aconfigure returned an error. The following patch to configure-iphone preserves the exit value of aconfigure. ------------------------------------------------------------------- # And finally invoke the configure script itself ./aconfigure --host=${ARCH_VAL}-apple-darwin_ios --disable-sdl $* EC=$? if test "$EC" = "0"; then   echo "Done configuring for `basename $SDKPATH`"   echo "" fi exit $EC