all: disable packing macOS binaries for now

This commit is contained in:
Markus F.X.J. Oberhumer
2023-10-15 10:15:46 +02:00
parent d8be2ed276
commit 4870765e1b
5 changed files with 16 additions and 2 deletions
+6
View File
@@ -2229,6 +2229,12 @@ tribool PackMachBase<T>::canPack()
break;
}
}
#if !defined(DEBUG)
// disable macOS packing in Release builds until we do support macOS 13+
// https://github.com/upx/upx/issues/612
if (my_cputype == CPU_TYPE_X86_64 || my_cputype == CPU_TYPE_ARM64)
throwCantPack("macOS is currently not supported");
#endif
return true;
}