Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macos apple silicon #173

Merged
merged 10 commits into from
Feb 22, 2023
10 changes: 9 additions & 1 deletion platforms/macos/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
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=Gearboy

Expand Down