mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[simulator/macos] Add universal binary support for x86_64 and ARM64
Build universal macOS simulator binaries that work on both Intel and Apple Silicon Macs by default. The build system now: - Defaults to building for both x86_64 and ARM64 architectures - Uses lipo to create universal binaries - Allows single-architecture builds via ARCHS=arm64 or ARCHS=x86_64 - Conditionally includes the appropriate assembly files for each architecture
This commit is contained in:
@@ -5,7 +5,9 @@ APPLE_PLATFORM = macos
|
||||
APPLE_PLATFORM_MIN_VERSION = 10.10
|
||||
EPSILON_TELEMETRY ?= 0
|
||||
|
||||
ARCHS = x86_64
|
||||
# Build universal binary for both x86_64 and ARM64 by default
|
||||
# Can be overridden with ARCHS=arm64 or ARCHS=x86_64 for single architecture builds
|
||||
ARCHS ?= x86_64 arm64
|
||||
|
||||
ifdef ARCH
|
||||
BUILD_DIR := $(BUILD_DIR)/$(ARCH)
|
||||
|
||||
Reference in New Issue
Block a user