From 7adcc8f954c1a273d12f92a317565cc2ba75f373 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 19 Dec 2023 02:11:06 +0100 Subject: [PATCH] Don't use arm64 for universal binaries by default under macOS 10 This architecture is supported since macOS 11. --- configure.ac | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 0d153fd654..f00975fd0b 100644 --- a/configure.ac +++ b/configure.ac @@ -1161,8 +1161,14 @@ if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then if test "x$wxUSE_UNIVERSAL_BINARY" != xyes; then OSX_ARCH_OPTS=$wxUSE_UNIVERSAL_BINARY else - dnl Default architectures for the universal binaries. - OSX_ARCH_OPTS=arm64,x86_64 + dnl Use default architectures for the universal binaries: x86_64 is + dnl currently supported everywhere... + OSX_ARCH_OPTS=x86_64 + + dnl ... and non-ancient macOS versions also support ARM. + if [ `sw_vers -productVersion | sed 's/\..*//'` -gt 10 ]; then + OSX_ARCH_OPTS=arm64,$OSX_ARCH_OPTS + fi fi AC_MSG_CHECKING([for architectures to use in universal binary])