From 0e4520e89104a6a5610b419d2311f2461bcc5f70 Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Mon, 2 Mar 2015 16:04:26 -0800 Subject: [PATCH] Make the iOS prerule a little smarter about failing. --- libretro-build-common.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libretro-build-common.sh b/libretro-build-common.sh index 4485bceb..41a1f559 100755 --- a/libretro-build-common.sh +++ b/libretro-build-common.sh @@ -400,9 +400,12 @@ build_libretro_mame_prerule() { if [ -n "$IOS" ]; then # FIXME: iOS doesn't build right now, so let's leave this simple until it does. target=mame - echo_cmd "$MAKE -f Makefile.libretro \"TARGET=$target\" platform=\"$FORMAT_COMPILER_TARGET\" CC=\"$CC\" CXX=\"$CXX\" \"NATIVE=1\" buildtools \"-j$JOBS\"" || die 'Failed to build MAME buildtools' - echo_cmd "$MAKE -f Makefile.libretro \"TARGET=$target\" platform=\"$FORMAT_COMPILER_TARGET\" CC=\"$CC\" CXX=\"$CXX\" emulator \"-j$JOBS\"" || die 'Failed to build MAME (iOS)' + echo_cmd "$MAKE -f Makefile.libretro \"TARGET=$target\" platform=\"$FORMAT_COMPILER_TARGET\" CC=\"$CC\" CXX=\"$CXX\" \"NATIVE=1\" buildtools \"-j$JOBS\"" ret=$? + if [ "$ret" = 0 ]; then + echo_cmd "$MAKE -f Makefile.libretro \"TARGET=$target\" platform=\"$FORMAT_COMPILER_TARGET\" CC=\"$CC\" CXX=\"$CXX\" emulator \"-j$JOBS\"" + ret=$? + fi build_summary_log $ret "$target" else for target in mame mess ume; do