Disable upx compression for mips arch
Cadoles/go-http-peering/pipeline/head This commit is unstable Details

This commit is contained in:
wpetit 2022-09-12 18:22:49 +02:00
parent 7cff0e3f91
commit 5be381d2b7
1 changed files with 3 additions and 1 deletions

View File

@ -29,7 +29,9 @@ function build {
-o "$destdir/$name" \
"$srcdir"
if [ ! -z "$(which upx)" ]; then
# Disable UPX compression for MIPS archs
# See https://github.com/upx/upx/issues/339
if [ ! -z "$(which upx)" ] && [[ ! "$arch" =~ "mips" ]]; then
upx --best "$destdir/$name"
fi