From 90a50e0e1ebc4ffc3d6f5b29a6e6486520c20486 Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Thu, 1 Feb 2024 11:44:45 +0100 Subject: [PATCH] Apple Silicon --- platforms/macos/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/platforms/macos/Makefile b/platforms/macos/Makefile index eef79852..33161d98 100644 --- a/platforms/macos/Makefile +++ b/platforms/macos/Makefile @@ -6,7 +6,14 @@ LDFLAGS += -framework AppKit -framework UniformTypeIdentifiers include ../desktop-shared/Makefile.common -DYLIB_PATH=/usr/local/opt/sdl2/lib +# Brew use a different path on Apple Silicon as on Intel +UNAME_P := $(shell uname -m) +ifneq ($(filter arm64%,$(UNAME_P)),) + DYLIB_PATH=/opt/homebrew/lib/ +else + DYLIB_PATH=/usr/local/opt/sdl2/lib +endif + SDL_DYLIB=libSDL2-2.0.0.dylib APP_NAME=Gearsystem