Skip to content

Commit

Permalink
Apple Silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius authored Feb 1, 2024
1 parent 77781a8 commit 90a50e0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion platforms/macos/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 90a50e0

Please sign in to comment.