Skip binary stipping on mac due to code signing issues

This commit is contained in:
Julian Ospald 2022-02-26 20:29:22 +01:00
parent 8afabf3ffb
commit d67dafaf1b
Signed by: hasufell
GPG Key ID: 3786C5262ECB4A3F

View File

@ -36,7 +36,8 @@ mkdir out
binary=$(ecabal new-exec -w ghc-${GHC_VERSION} --verbose=0 --offline sh -- -c 'command -v ghcup')
ver=$("${binary}" --numeric-version)
if [ "${OS}" = "DARWIN" ] ; then
strip "${binary}"
# due to some code signing issues on M1s, we just skip stripping altogether
:
else
strip -s "${binary}"
fi