From f6b1f31326a256d4ce8f10506e200b3acfbd7eb6 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Thu, 3 Sep 2020 11:06:36 -0500 Subject: [PATCH] build: don't swallow error when make fails to build bin/nim_status_client --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a5c256ea46..01c164ae90 100644 --- a/Makefile +++ b/Makefile @@ -218,11 +218,12 @@ rcc: nim_status_client: | $(DOTHERSIDE) $(STATUSGO) $(QRCODEGEN) rcc deps echo -e $(BUILD_MSG) "$@" && \ $(ENV_SCRIPT) nim c $(NIM_PARAMS) --passL:"-L$(STATUSGO_LIBDIR)" --passL:"-lstatus" $(NIM_EXTRA_PARAMS) --passL:"$(QRCODEGEN)" --passL:"-lm" src/nim_status_client.nim && \ - [[ $(detected_OS) = Darwin ]] && \ + [[ $$? = 0 ]] && \ + (([[ $(detected_OS) = Darwin ]] && \ install_name_tool -change \ libstatus.dylib \ @rpath/libstatus.dylib \ - bin/nim_status_client || true + bin/nim_status_client) || true) _APPIMAGE_TOOL := appimagetool-x86_64.AppImage APPIMAGE_TOOL := tmp/linux/tools/$(_APPIMAGE_TOOL)