File 1044-gh-Fail-macos-build-on-build-step-failure.patch of Package erlang
From d0c03bb37ddcb093a96ccd487df9fbd1c4e9edfe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= <lukas@erlang.org>
Date: Fri, 23 May 2025 12:29:26 +0200
Subject: [PATCH 4/5] gh: Fail macos build on build-step failure
---
.github/scripts/build-macos.sh | 2 ++
xcomp/erl-xcomp-arm64-ios.conf | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/.github/scripts/build-macos.sh b/.github/scripts/build-macos.sh
index 17fbfba4b8..e8bd5f9f32 100755
--- a/.github/scripts/build-macos.sh
+++ b/.github/scripts/build-macos.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+set -e
+
export MAKEFLAGS="-j$(getconf _NPROCESSORS_ONLN)"
export ERL_TOP="$(pwd)"
export ERLC_USE_SERVER=true
diff --git a/xcomp/erl-xcomp-arm64-ios.conf b/xcomp/erl-xcomp-arm64-ios.conf
index 4a98b7dc4b..1b481fb35f 100644
--- a/xcomp/erl-xcomp-arm64-ios.conf
+++ b/xcomp/erl-xcomp-arm64-ios.conf
@@ -66,7 +66,7 @@ erl_xcomp_configure_flags="--without-termcap --without-wx \
--without-javac --without-odbc \
--without-debugger --without-observer --without-cdv --without-et \
--enable-builtin-zlib --enable-static-nifs --enable-static-drivers \
- --disable-jit"
+ --disable-jit --disable-security-hardening-flags"
## -- Cross Compiler and Other Tools -------------------------------------------
--
2.51.0