From ae10c16bbb8969d73058ceacdca0ce25b30b9fd4 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sat, 14 Mar 2026 11:37:58 -0700 Subject: [PATCH] Add minimal framework support for building arm64e (#2858) --- Configurations/ConfigCommon.xcconfig | 4 ++-- Configurations/ConfigFramework.xcconfig | 2 ++ Configurations/ed25519-Shared.xcconfig | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Configurations/ConfigCommon.xcconfig b/Configurations/ConfigCommon.xcconfig index c7ae0c25..fefbb57d 100644 --- a/Configurations/ConfigCommon.xcconfig +++ b/Configurations/ConfigCommon.xcconfig @@ -48,8 +48,8 @@ OTHER_SWIFT_FLAGS_COMMON = -DSPARKLE_BUILD_LEGACY_DSA_SUPPORT -DGENERATE_APPCAST // Minimum supported macOS version MACOSX_DEPLOYMENT_TARGET = 10.13 -// Supported architectures -ARCHS = $(ARCHS_STANDARD) +// Set to arm64e to also build Sparkle framework as arm64e (requires Xcode 26 or later) +EXTENDED_ARCHS = // Default Sparkle names SPARKLE_BUNDLE_IDENTIFIER = org.sparkle-project.Sparkle diff --git a/Configurations/ConfigFramework.xcconfig b/Configurations/ConfigFramework.xcconfig index 32b4478a..1917147a 100644 --- a/Configurations/ConfigFramework.xcconfig +++ b/Configurations/ConfigFramework.xcconfig @@ -13,6 +13,8 @@ WRAPPER_EXTENSION = framework // so as a better workaround we have changed the FRAMEWORK_VERSION from A to B FRAMEWORK_VERSION = B +ARCHS = $(ARCHS_STANDARD) $(EXTENDED_ARCHS) + INFOPLIST_FILE = Sparkle/Sparkle-Info.plist GCC_PREPROCESSOR_DEFINITIONS = $(inherited) BUILDING_SPARKLE=1 SKIP_INSTALL = YES diff --git a/Configurations/ed25519-Shared.xcconfig b/Configurations/ed25519-Shared.xcconfig index 22d08a7d..7366fea4 100644 --- a/Configurations/ed25519-Shared.xcconfig +++ b/Configurations/ed25519-Shared.xcconfig @@ -15,3 +15,5 @@ WARNING_CFLAGS = $(inherited) -Wno-cast-qual -Wno-conversion -Wno-sign-conversio // Disable dead stores analyzer warning CLANG_ANALYZER_DEADCODE_DEADSTORES = NO + +ARCHS = $(ARCHS_STANDARD) $(EXTENDED_ARCHS)