mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
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
17 lines
367 B
Makefile
17 lines
367 B
Makefile
TOOLCHAIN = apple
|
|
EXE = bin
|
|
|
|
APPLE_PLATFORM = macos
|
|
APPLE_PLATFORM_MIN_VERSION = 10.10
|
|
EPSILON_TELEMETRY ?= 0
|
|
|
|
# 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)
|
|
else
|
|
HANDY_TARGETS_EXTENSIONS = app
|
|
endif
|